Class DefaultApi10a

    • Constructor Detail

      • DefaultApi10a

        public DefaultApi10a()
    • Method Detail

      • getAccessTokenExtractor

        public AccessTokenExtractor getAccessTokenExtractor()
        Returns the access token extractor.
        Returns:
        access token extractor
      • getBaseStringExtractor

        public BaseStringExtractor getBaseStringExtractor()
        Returns the base string extractor.
        Returns:
        base string extractor
      • getHeaderExtractor

        public HeaderExtractor getHeaderExtractor()
        Returns the header extractor.
        Returns:
        header extractor
      • getRequestTokenExtractor

        public RequestTokenExtractor getRequestTokenExtractor()
        Returns the request token extractor.
        Returns:
        request token extractor
      • getSignatureService

        public SignatureService getSignatureService()
        Returns the signature service.
        Returns:
        signature service
      • getTimestampService

        public TimestampService getTimestampService()
        Returns the timestamp service.
        Returns:
        timestamp service
      • getAccessTokenVerb

        public Verb getAccessTokenVerb()
        Returns the verb for the access token endpoint (defaults to POST)
        Returns:
        access token endpoint verb
      • getRequestTokenVerb

        public Verb getRequestTokenVerb()
        Returns the verb for the request token endpoint (defaults to POST)
        Returns:
        request token endpoint verb
      • getRequestTokenEndpoint

        public abstract String getRequestTokenEndpoint()
        Returns the URL that receives the request token requests.
        Returns:
        request token URL
      • getAccessTokenEndpoint

        public abstract String getAccessTokenEndpoint()
        Returns the URL that receives the access token requests.
        Returns:
        access token URL
      • getAuthorizationUrl

        public abstract String getAuthorizationUrl​(Token requestToken)
        Returns the URL where you should redirect your users to authenticate your application.
        Parameters:
        requestToken - the request token you need to authorize
        Returns:
        the URL where you should redirect your users
      • createService

        public OAuthService createService​(OAuthConfig config)
        Returns the OAuthService for this Api
        Specified by:
        createService in interface Api
        Parameters:
        apiKey - Key
        apiSecret - Api Secret
        callback - OAuth callback (either URL or 'oob')
        scope - OAuth scope (optional)
        Returns:
        fully configured OAuthService