Package org.keycloak.rar
Class AuthorizationDetails
java.lang.Object
org.keycloak.rar.AuthorizationDetails
- All Implemented Interfaces:
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.
The
AuthorizationRequestSource is 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:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationDetails(ClientScopeModel clientScope) AuthorizationDetails(ClientScopeModel clientScope, AuthorizationRequestSource source, AuthorizationDetailsJSONRepresentation authorizationDetails) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Returns the parameterized scope parameter from the underlyingAuthorizationDetailsJSONRepresentationrepresentation.inthashCode()booleanDeprecated.UseisParameterizedScope()instead.booleanReturns whether the currentAuthorizationDetailsobject is a parameterized scope.voidsetAuthorizationDetails(AuthorizationDetailsJSONRepresentation authorizationDetails) voidsetClientScope(ClientScopeModel clientScope) voidsetSource(AuthorizationRequestSource source) toString()
-
Constructor Details
-
AuthorizationDetails
public AuthorizationDetails(ClientScopeModel clientScope, AuthorizationRequestSource source, AuthorizationDetailsJSONRepresentation authorizationDetails) -
AuthorizationDetails
-
-
Method Details
-
getClientScope
-
setClientScope
-
getSource
-
setSource
-
getAuthorizationDetails
-
setAuthorizationDetails
-
isParameterizedScope
public boolean isParameterizedScope()Returns whether the currentAuthorizationDetailsobject is a parameterized scope.- Returns:
- see description
-
getParameterizedScopeParam
Returns the parameterized scope parameter from the underlyingAuthorizationDetailsJSONRepresentationrepresentation.- Returns:
- see description
-
isDynamicScope
Deprecated.UseisParameterizedScope()instead. -
getDynamicScopeParam
Deprecated.UsegetParameterizedScopeParam()instead. -
equals
-
hashCode
public int hashCode() -
toString
-
getParameterizedScopeParam()instead.