Interface Session

All Known Implementing Classes:
DefaultSessionController.DefaultSession

public interface Session
Implementable data type used to allow access to data regarding OAuth2 sessions.

This can be used with a proper OAuth2Client to get information on the logged in User, as well as Guilds they are on.

Author:
John Grosh ([email protected]), Kaidan Gustave
  • Method Details

    • getAccessToken

      String getAccessToken()
      Gets the session's access token.
      Returns:
      The session's access token.
    • getRefreshToken

      String getRefreshToken()
      Gets the session's refresh token.
      Returns:
      The session's refresh token.
    • getScopes

      Scope[] getScopes()
      Gets the session's Scopes.
      Returns:
      The session's Scopes.
    • getTokenType

      String getTokenType()
      Gets the session's token type.
      Returns:
      The session's token type.
    • getExpiration

      OffsetDateTime getExpiration()
      Gets the session's expiration time.
      Returns:
      The session's expiration time.