Interface OAuth2TokenStore

  • All Implemented Interfaces:

    
    public interface OAuth2TokenStore
    
                        

    This class takes care of storing (and potentially persisting) the OAuth token.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void storeToken(@NonNull() OAuth2Token oauth2Token, @NonNull() String url) Called when a OAuth2Processor needs to store a token.
      abstract OAuth2Token getToken(@NonNull() String url) Called when a OAuth2Processor wants a token.
      abstract void deleteToken(@NonNull() String url) Called when a token should be deleted.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • storeToken

         abstract void storeToken(@NonNull() OAuth2Token oauth2Token, @NonNull() String url)

        Called when a OAuth2Processor needs to store a token.

        Parameters:
        oauth2Token - the token to be stored
        url - the url the token is associated to
      • deleteToken

         abstract void deleteToken(@NonNull() String url)

        Called when a token should be deleted.

        Parameters:
        url - The url which the token is no longer needed.