Class DefaultSessionController.DefaultSession

java.lang.Object
com.jagrosh.jdautilities.oauth2.session.DefaultSessionController.DefaultSession
All Implemented Interfaces:
Session
Enclosing class:
DefaultSessionController

public class DefaultSessionController.DefaultSession extends Object implements Session
  • Method Details

    • getAccessToken

      public String getAccessToken()
      Description copied from interface: Session
      Gets the session's access token.
      Specified by:
      getAccessToken in interface Session
      Returns:
      The session's access token.
    • getRefreshToken

      public String getRefreshToken()
      Description copied from interface: Session
      Gets the session's refresh token.
      Specified by:
      getRefreshToken in interface Session
      Returns:
      The session's refresh token.
    • getScopes

      public Scope[] getScopes()
      Description copied from interface: Session
      Gets the session's Scopes.
      Specified by:
      getScopes in interface Session
      Returns:
      The session's Scopes.
    • getTokenType

      public String getTokenType()
      Description copied from interface: Session
      Gets the session's token type.
      Specified by:
      getTokenType in interface Session
      Returns:
      The session's token type.
    • getExpiration

      public OffsetDateTime getExpiration()
      Description copied from interface: Session
      Gets the session's expiration time.
      Specified by:
      getExpiration in interface Session
      Returns:
      The session's expiration time.