Class TokenDataAttributes

Object
se.curity.identityserver.sdk.attribute.Attributes
se.curity.identityserver.sdk.attribute.token.TokenDataAttributes
All Implemented Interfaces:
Iterable<Attribute>, AttributeContainer<Attributes>, SerializableAsMap
Direct Known Subclasses:
IdTokenAttributes, NonceAttributes, OAuthTokenAttributes, VerifiableCredentialJwtVcJsonTokenDataAttributes, VerifiableCredentialVcSdJwtTokenDataAttributes

public class TokenDataAttributes extends Attributes
A base class for all token and nonce attributes.
Since:
8.0.0
  • Field Details

  • Constructor Details

    • TokenDataAttributes

      protected TokenDataAttributes(Attributes attributes)
  • Method Details

    • of

      public static TokenDataAttributes of(Attributes attributes)
      Creates a token attributes using the provided Attributes.
      Parameters:
      attributes - the attributes used to create TokenDataAttributes
      Returns:
      the created TokenDataAttributes
    • fromMap

      public static TokenDataAttributes fromMap(Map<String,?> map)
      Creates a token attributes class using the provided map.
      Parameters:
      map - the map used to create TokenDataAttributes
      Returns:
      the created TokenDataAttributes
    • getCreated

      public Instant getCreated()
      Returns:
      the instant indicating when this attributes object was created
    • getPurpose

      public String getPurpose()
      Returns:
      the value of the purpose claim
    • getCreatedKey

      protected String getCreatedKey()