org.keycloak.rar.AuthorizationRequestContext Maven / Gradle / Ivy
/*
* Copyright 2022 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.keycloak.rar;
import java.util.List;
/**
* This context object will contain all parsed Rich Authorization Request objects, together with the internal representation
* that Keycloak is going to use for Scopes.
*
* @author Daniel Gozalo
* @see {@link Rich Authorization Requests}
*
* These {@link AuthorizationDetails} objects will become a standard way to store OAuth authorization information to be used
* for different purposes such as TokenMappers, Consents etc.
*
* This context will never be stored in a database or cached, and it will instead be generated every time it's needed to avoid
* straining the cache replication mechanisms as it may get significantly big.
*/
public class AuthorizationRequestContext {
List authorizationDetailEntries;
public AuthorizationRequestContext(List authorizationDetailEntries) {
this.authorizationDetailEntries = authorizationDetailEntries;
}
public List getAuthorizationDetailEntries() {
return authorizationDetailEntries;
}
public void setAuthorizationDetailEntries(List authorizationDetailEntries) {
this.authorizationDetailEntries = authorizationDetailEntries;
}
}