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. TheAuthorizationRequestSource
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizationDetails(ClientScopeModel clientScope)
AuthorizationDetails(ClientScopeModel clientScope, AuthorizationRequestSource source, AuthorizationDetailsJSONRepresentation authorizationDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
AuthorizationDetailsJSONRepresentation
getAuthorizationDetails()
ClientScopeModel
getClientScope()
String
getDynamicScopeParam()
Returns the Dynamic Scope parameter from the underlyingAuthorizationDetailsJSONRepresentation
representationAuthorizationRequestSource
getSource()
int
hashCode()
boolean
isDynamicScope()
Returns whether the currentAuthorizationDetails
object is a dynamic scopevoid
setAuthorizationDetails(AuthorizationDetailsJSONRepresentation authorizationDetails)
void
setClientScope(ClientScopeModel clientScope)
void
setSource(AuthorizationRequestSource source)
String
toString()
-
-
-
Constructor Detail
-
AuthorizationDetails
public AuthorizationDetails(ClientScopeModel clientScope, AuthorizationRequestSource source, AuthorizationDetailsJSONRepresentation authorizationDetails)
-
AuthorizationDetails
public AuthorizationDetails(ClientScopeModel clientScope)
-
-
Method Detail
-
getClientScope
public ClientScopeModel getClientScope()
-
setClientScope
public void setClientScope(ClientScopeModel clientScope)
-
getSource
public AuthorizationRequestSource getSource()
-
setSource
public void setSource(AuthorizationRequestSource source)
-
getAuthorizationDetails
public AuthorizationDetailsJSONRepresentation getAuthorizationDetails()
-
setAuthorizationDetails
public void setAuthorizationDetails(AuthorizationDetailsJSONRepresentation authorizationDetails)
-
isDynamicScope
public boolean isDynamicScope()
Returns whether the currentAuthorizationDetails
object is a dynamic scope- Returns:
- see description
-
getDynamicScopeParam
public String getDynamicScopeParam()
Returns the Dynamic Scope parameter from the underlyingAuthorizationDetailsJSONRepresentation
representation- Returns:
- see description
-
-