Package org.keycloak.rar
Class AuthorizationDetails
- java.lang.Object
- 
- org.keycloak.rar.AuthorizationDetails
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class AuthorizationDetails extends Object implements Serializable The internal Keycloak representation of a Rich Authorization Request authorization_details object, together with some extra metadata to make it easier to work with this data in other parts of the codebase. TheAuthorizationRequestSourceis needed as OAuth scopes are also parsed into AuthorizationDetails to standardize the way authorization data is managed in Keycloak. Scopes parsed as AuthorizationDetails will need to be treated as normal OAuth scopes in places like TokenMappers and included in the "scopes" JWT claim as such.- Author:
- Daniel Gozalo
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AuthorizationDetails(ClientScopeModel clientScope)AuthorizationDetails(ClientScopeModel clientScope, AuthorizationRequestSource source, AuthorizationDetailsJSONRepresentation authorizationDetails)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)AuthorizationDetailsJSONRepresentationgetAuthorizationDetails()ClientScopeModelgetClientScope()StringgetDynamicScopeParam()Returns the Dynamic Scope parameter from the underlyingAuthorizationDetailsJSONRepresentationrepresentationAuthorizationRequestSourcegetSource()inthashCode()booleanisDynamicScope()Returns whether the currentAuthorizationDetailsobject is a dynamic scopevoidsetAuthorizationDetails(AuthorizationDetailsJSONRepresentation authorizationDetails)voidsetClientScope(ClientScopeModel clientScope)voidsetSource(AuthorizationRequestSource source)StringtoString()
 
- 
- 
- 
Constructor Detail- 
AuthorizationDetailspublic AuthorizationDetails(ClientScopeModel clientScope, AuthorizationRequestSource source, AuthorizationDetailsJSONRepresentation authorizationDetails) 
 - 
AuthorizationDetailspublic AuthorizationDetails(ClientScopeModel clientScope) 
 
- 
 - 
Method Detail- 
getClientScopepublic ClientScopeModel getClientScope() 
 - 
setClientScopepublic void setClientScope(ClientScopeModel clientScope) 
 - 
getSourcepublic AuthorizationRequestSource getSource() 
 - 
setSourcepublic void setSource(AuthorizationRequestSource source) 
 - 
getAuthorizationDetailspublic AuthorizationDetailsJSONRepresentation getAuthorizationDetails() 
 - 
setAuthorizationDetailspublic void setAuthorizationDetails(AuthorizationDetailsJSONRepresentation authorizationDetails) 
 - 
isDynamicScopepublic boolean isDynamicScope() Returns whether the currentAuthorizationDetailsobject is a dynamic scope- Returns:
- see description
 
 - 
getDynamicScopeParampublic String getDynamicScopeParam() Returns the Dynamic Scope parameter from the underlyingAuthorizationDetailsJSONRepresentationrepresentation- Returns:
- see description
 
 
- 
 
-