Class OAuth10Configuration


  • public class OAuth10Configuration
    extends OAuthConfiguration<com.github.scribejava.core.oauth.OAuth10aService,​com.github.scribejava.core.model.OAuth1AccessToken>
    The OAuh 1.0 configuration.
    Since:
    2.0.0
    Author:
    Jerome Leleu
    • Constructor Detail

      • OAuth10Configuration

        public OAuth10Configuration()
    • Method Detail

      • internalInit

        protected void internalInit()
        Overrides:
        internalInit in class OAuthConfiguration<com.github.scribejava.core.oauth.OAuth10aService,​com.github.scribejava.core.model.OAuth1AccessToken>
      • buildService

        public com.github.scribejava.core.oauth.OAuth10aService buildService​(WebContext context,
                                                                             IndirectClient client)
        Build an OAuth service from the web context.
        Specified by:
        buildService in class OAuthConfiguration<com.github.scribejava.core.oauth.OAuth10aService,​com.github.scribejava.core.model.OAuth1AccessToken>
        Parameters:
        context - the web context
        client - the client
        Returns:
        the OAuth service
      • getRequestTokenSessionAttributeName

        public String getRequestTokenSessionAttributeName​(String clientName)
        Return the name of the attribute storing in session the request token.
        Parameters:
        clientName - the client name
        Returns:
        the name of the attribute storing in session the request token
      • getApi

        public com.github.scribejava.core.builder.api.DefaultApi10a getApi()
      • setApi

        public void setApi​(com.github.scribejava.core.builder.api.DefaultApi10a api)