Class OAuth10Client

  • All Implemented Interfaces:
    org.pac4j.core.client.Client
    Direct Known Subclasses:
    BitbucketClient, TwitterClient, YahooClient

    public class OAuth10Client
    extends org.pac4j.core.client.IndirectClient
    The generic OAuth 1.0 client.
    Since:
    2.0.0
    Author:
    Jerome Leleu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected OAuth10Configuration configuration  
      • Fields inherited from class org.pac4j.core.client.IndirectClient

        ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolver
      • Fields inherited from class org.pac4j.core.client.BaseClient

        logger, saveProfileInSession
    • Constructor Summary

      Constructors 
      Constructor Description
      OAuth10Client()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void beforeInternalInit()  
      OAuth10Configuration getConfiguration()  
      java.lang.String getKey()  
      java.lang.String getSecret()  
      protected void internalInit()  
      void setConfiguration​(OAuth10Configuration configuration)  
      void setKey​(java.lang.String key)  
      void setSecret​(java.lang.String secret)  
      java.lang.String toString()  
      • Methods inherited from class org.pac4j.core.client.IndirectClient

        afterInternalInit, computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCodeVerifierSessionAttributeName, getCredentials, getLogoutAction, getLogoutActionBuilder, getNonceSessionAttributeName, getRedirectionAction, getRedirectionActionBuilder, getStateSessionAttributeName, getUrlResolver, isCheckAuthenticationAttempt, newDefaultCallbackUrlResolver, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setCheckAuthenticationAttempt, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolver
      • Methods inherited from class org.pac4j.core.client.BaseClient

        addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getProfileFactoryWhenNotAuthenticated, getSaveProfileInSession, getUserProfile, isMultiProfile, notifySessionRenewal, renewUserProfile, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setMultiProfile, setName, setProfileCreator, setProfileFactoryWhenNotAuthenticated, setSaveProfileInSession
      • Methods inherited from class org.pac4j.core.util.InitializableObject

        init, isInitialized
      • Methods inherited from class java.lang.Object

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

      • OAuth10Client

        public OAuth10Client()
    • Method Detail

      • beforeInternalInit

        protected void beforeInternalInit()
        Overrides:
        beforeInternalInit in class org.pac4j.core.client.IndirectClient
      • internalInit

        protected void internalInit()
        Specified by:
        internalInit in class org.pac4j.core.util.InitializableObject
      • getKey

        public java.lang.String getKey()
      • setKey

        public void setKey​(java.lang.String key)
      • getSecret

        public java.lang.String getSecret()
      • setSecret

        public void setSecret​(java.lang.String secret)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.pac4j.core.client.IndirectClient