Class AuthorizationDetailsJSONRepresentation

java.lang.Object
org.keycloak.representations.AuthorizationDetailsJSONRepresentation
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OID4VCAuthorizationDetail

public class AuthorizationDetailsJSONRepresentation extends Object implements Serializable
The JSON representation of a Rich Authorization Request's "authorization_details" object. The "authorization_details" parameter is array of objects and this class represents single entry of that array. It is used as a base for "authorization_details" for both requests and responses.
Author:
Daniel Gozalo
See Also:
  • Field Details

  • Constructor Details

    • AuthorizationDetailsJSONRepresentation

      public AuthorizationDetailsJSONRepresentation()
  • Method Details

    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getLocations

      public List<String> getLocations()
    • setLocations

      public void setLocations(List<String> locations)
    • getActions

      public List<String> getActions()
    • setActions

      public void setActions(List<String> actions)
    • getDatatypes

      public List<String> getDatatypes()
    • setDatatypes

      public void setDatatypes(List<String> datatypes)
    • getIdentifier

      public String getIdentifier()
    • setIdentifier

      public void setIdentifier(String identifier)
    • getPrivileges

      public List<String> getPrivileges()
    • setPrivileges

      public void setPrivileges(List<String> privileges)
    • getCustomData

      public Map<String,Object> getCustomData()
    • setCustomData

      public void setCustomData(String key, Object value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asSubtype

      public <T extends AuthorizationDetailsJSONRepresentation> T asSubtype(Class<T> clazz)
      Parameters:
      clazz - Subtype of AuthorizationDetailsJSONRepresentation, which will be returned by calling this method
      Returns:
      this authorizationDetails content cast to the class specified by clazz parameter as long as parser corresponding to the type returned by getType() is able to parse this authorizationDetails and convert it to that subtype
    • getScopeNameFromCustomData

      public String getScopeNameFromCustomData()
    • getDynamicScopeParamFromCustomData

      public String getDynamicScopeParamFromCustomData()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object