Interface Tokens

All Known Implementing Classes:
PersistentTokenTable

public interface Tokens
  • Method Details

    • getKey

      String getKey()
      Key of {@link this} tokens table.
    • getAccessToken

      String getAccessToken()
      Gets the current access token.
      Returns:
      The current access token
    • setAccessToken

      void setAccessToken(String accessToken)
      Sets the access token.
      Parameters:
      accessToken - Sets the access token.
    • getRefreshToken

      String getRefreshToken()
    • setRefreshToken

      void setRefreshToken(String refreshToken)
    • setExpiresIn

      void setExpiresIn(String expiresIn)
    • getExpiresIn

      String getExpiresIn()
    • get

      String get(String token)
      Returns value from tokens table that corresponds to provided plugin.
      Parameters:
      token - token of the value to obtain
      Returns:
      value from token table that corresponds to provided plugin
    • put

      boolean put(String token, String value, boolean replace)
      Associates provided token with provided plugin in token table.
      Parameters:
      token - Token of the value to associate with
      value - Value that will be associated with provided alias
      replace - Whether existing value for the same token should be replaced
      Returns:
      true if provided token was associated with the provided value in tokens table
    • remove

      boolean remove(String token)
      Removes value for specified token from tokens table.
      Parameters:
      token - token of the value to remove
      Returns:
      true if the value associated with provided token was removed from the tokens table.