Class OAuth10aServiceImpl

    • Constructor Detail

      • OAuth10aServiceImpl

        public OAuth10aServiceImpl​(DefaultApi10a api,
                                   OAuthConfig config)
        Default constructor
        Parameters:
        api - OAuth1.0a api information
        config - OAuth 1.0a configuration param object
    • Method Detail

      • getRequestToken

        public Token getRequestToken​(int timeout,
                                     java.util.concurrent.TimeUnit unit)
      • getAccessToken

        public Token getAccessToken​(Token requestToken,
                                    Verifier verifier,
                                    int timeout,
                                    java.util.concurrent.TimeUnit unit)
      • getAccessToken

        public Token getAccessToken​(Token requestToken,
                                    Verifier verifier)
        Description copied from interface: OAuthService
        Retrieve the access token
        Specified by:
        getAccessToken in interface OAuthService
        Parameters:
        requestToken - request token (obtained previously)
        verifier - verifier code
        Returns:
        access token
      • signRequest

        public void signRequest​(Token token,
                                OAuthRequest request)
        Signs am OAuth request
        Specified by:
        signRequest in interface OAuthService
        Parameters:
        token - access token (obtained previously)
        request - request to sign
      • getVersion

        public java.lang.String getVersion()
        Returns the OAuth version of the service.
        Specified by:
        getVersion in interface OAuthService
        Returns:
        oauth version as string
      • getAuthorizationUrl

        public java.lang.String getAuthorizationUrl​(Token requestToken)
        Returns the URL where you should redirect your users to authenticate your application.
        Specified by:
        getAuthorizationUrl in interface OAuthService
        Parameters:
        requestToken - the request token you need to authorize
        Returns:
        the URL where you should redirect your users