Interface OAuthVerifierStore


  • public interface OAuthVerifierStore
    Stores OAuth verifiers. A verifier is a verification code tied to a request token. Both the OAuth verifier and request token must be provided in exchange for an access token.
    Since:
    1.9.0
    See Also:
    OAuthStoreManager.getVerifierStore()
    • Method Detail

      • setVerifier

        void setVerifier​(String verifierId,
                         String verifier)
                  throws IOException
        Associates a verifier to an ID to approve the OAuth connection. This method is typically to invoke when the OAuth callback URL has been invoked by the target application.
        Parameters:
        verifierId - the ID of the verifier
        verifier - the verifier value sent within the callback URL
        Throws:
        IOException - if this operation involves serializing the verifier information and an error occurs.
        See Also:
        OAuthHandler.createCallback(RootServices, String)
      • removeVerifier

        String removeVerifier​(String verifierId)
                       throws IOException
        Removes the verifier associated to the given ID and returns it.
        Parameters:
        verifierId - the ID of the verifier
        Returns:
        verifier the verifier value sent within the callback URL
        Throws:
        IOException - if this operation involves serializing the verifier information and an error occurs.
        See Also:
        OAuthHandler.createCallback(RootServices, String)