Class TokenOAuthEvent

Object
se.curity.identityserver.sdk.data.events.OAuthEvent
se.curity.identityserver.sdk.data.events.TokenOAuthEvent
All Implemented Interfaces:
SerializableAsMap, Event
Direct Known Subclasses:
AccessTokenOAuthEvent, IdTokenOAuthEvent, IntrospectionOAuthEvent, RefreshTokenOAuthEvent

public abstract class TokenOAuthEvent extends OAuthEvent
Common base class for OAuth Token events.
Since:
2.3.0
  • Constructor Details

  • Method Details

    • getCreated

      public Instant getCreated()
      Get the Instant the token was created.
      Returns:
      the Instant the token was created
    • getExpires

      public Instant getExpires()
      Get the Instant the token expires.
      Returns:
      the Instant the token expires
    • getPurpose

      public String getPurpose()
      Get the purpose of the token.
      Returns:
      the purpose of the token
    • getIssuer

      public String getIssuer()
      Get the issuer of the token.
      Returns:
      the issuer of the token
    • getSubject

      public String getSubject()
      Get the subject of the token.
      Returns:
      the subject of the token
    • getAudience

      public List<String> getAudience()
      Get the audience of the token; as a List of Strings.
      Returns:
      the audience of the token
    • getClaims

      public Map<String,Object> getClaims()
      Get the claims of the token; as a Map.
      Returns:
      the claims of the token
    • asMap

      public Map<String,Object> asMap()
      Description copied from interface: Event
      Get a map representation of this Event.
      Specified by:
      asMap in interface Event
      Specified by:
      asMap in interface SerializableAsMap
      Overrides:
      asMap in class OAuthEvent
      Returns:
      a Map representation of this Event. This can be used to serialize events. Sub-types are encouraged to override this method, calling super.asMap() and enriching the returned mutable Map with the more specific information added by the sub-type.