Class AccessTokenOAuthEvent

All Implemented Interfaces:
SerializableAsMap, Event
Direct Known Subclasses:
InitialAccessTokenDcrOAuthEvent, IssuedAccessTokenOAuthEvent, RevokedAccessTokenOAuthEvent

public abstract class AccessTokenOAuthEvent extends TokenOAuthEvent
Common base class for OAuth access token events.
Since:
2.3.0
  • Constructor Details

  • Method Details

    • getNotBefore

      public Instant getNotBefore()
      Get the Instant before which the token is not allowed to be used.
      Returns:
      the Instant before which the token is not allowed to be used
    • getScope

      public String getScope()
      Get the scope of the token as a space-separated String.
      Returns:
      the scope of the token
    • getClientId

      public String getClientId()
      Get the ID of the client the token was issued to.
      Returns:
      the ID of the client the token was issued to
    • getDelegation

      public Delegation getDelegation()
      Get the Delegation that was used for creating the token.
      Returns:
      the token's Delegation
    • 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 TokenOAuthEvent
      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.