Class NonceAttributes

All Implemented Interfaces:
Iterable<Attribute>, AttributeContainer<Attributes>, SerializableAsMap
Direct Known Subclasses:
AuthorizationCodeNonceAttributes, DeviceCodeNonceAttributes

public class NonceAttributes extends TokenDataAttributes
A base class for attributes that represent nonces. This class and subclasses are used with the NonceIssuer interface when issuing nonces.
Since:
8.0.0
  • Constructor Details

    • NonceAttributes

      protected NonceAttributes(Attributes attributes)
  • Method Details

    • fromMap

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

      public static NonceAttributes of(Attributes attributes)
      Creates a nonce attributes using the provided Attributes.
      Parameters:
      attributes - the attributes used to create NonceAttributes
      Returns:
      the created NonceAttributes
    • getExpires

      public Instant getExpires()
      Returns the instant indicating when this nonce will expire.
      Returns:
      the instant value of the expires claim