Class ConsentAttributes

Object
se.curity.identityserver.sdk.attribute.Attributes
se.curity.identityserver.sdk.attribute.ConsentAttributes
All Implemented Interfaces:
Iterable<Attribute>, AttributeContainer<Attributes>, SerializableAsMap

public final class ConsentAttributes extends Attributes
Subtype of Attributes that contains the consent that the user submitted.
Since:
4.1.0
  • Method Details

    • of

      public static ConsentAttributes of(String clientId, AuthenticationAttributes authenticationAttributes, Collection<String> consentedScopes, Collection<String> consentedClaims)
    • fromAttributes

      public static ConsentAttributes fromAttributes(Attributes other)
      Create a new ConsentAttributes instance from the provided Attributes, that actually represents an Attributes-instance with the correct structure.

      This method should be called when an Attributes-instance is deserialized and needs to be upcast to ConsentAttributes.

      Parameters:
      other - Attributes-instance that has the correct model to be upcast as ConsentAttributes.
      Returns:
      the ConsentAttributes instance that is represented by the provided Attributes.
      Throws:
      AttributeValueException - when provided attributes did not contain required subject- and/or context- attributes.
    • getScopeNames

      public Collection<String> getScopeNames()
    • getClaimNames

      public Collection<String> getClaimNames()
    • getAuthenticationAttributes

      public AuthenticationAttributes getAuthenticationAttributes()
    • getClientId

      public String getClientId()