Class SessionData

java.lang.Object
com.jagrosh.jdautilities.oauth2.session.SessionData

public class SessionData extends Object
Contains various data necessary for creating a Session using a SessionController.
Author:
Kaidan Gustave
  • Constructor Details

  • Method Details

    • getIdentifier

      public String getIdentifier()
      Gets the session identifier.
      Returns:
      The session identifier.
    • getAccessToken

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

      public String getRefreshToken()
      Gets the session refresh token.
      Returns:
      The session refresh token.
    • getTokenType

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

      public OffsetDateTime getExpiration()
      Gets the session expiration time.
      Returns:
      The session expiration time.
    • getScopes

      public Scope[] getScopes()
      Gets the session Scopes.
      Returns:
      The session Scopes.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object