Package org.pac4j.saml.client
Class SAML2Client
java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.client.BaseClient
org.pac4j.core.client.IndirectClient
org.pac4j.saml.client.SAML2Client
- All Implemented Interfaces:
org.pac4j.core.client.Client
Deprecated.
This class is the client to authenticate and logout users with a SAML2 Identity Provider.
You should upgrade to the new
pac4j-saml-opensamlv5
module.- Since:
- 1.5.0
- Author:
- Michael Remond, Misagh Moayyed, Ruochao Zheng, Jerome Leleu
-
Field Summary
Modifier and TypeFieldDescriptionprotected SAML2ResponseValidator
Deprecated.protected SAML2Configuration
Deprecated.protected SAMLContextProvider
Deprecated.protected org.opensaml.saml.saml2.encryption.Decrypter
Deprecated.protected SAML2MetadataResolver
Deprecated.protected SAML2ProfileHandler<org.opensaml.saml.saml2.core.LogoutRequest>
Deprecated.protected SAML2LogoutValidator
Deprecated.protected SAML2ProfileHandler<org.opensaml.saml.saml2.core.AuthnRequest>
Deprecated.protected ReplayCacheProvider
Deprecated.protected SignatureSigningParametersProvider
Deprecated.protected SAML2SignatureTrustEngineProvider
Deprecated.protected SOAPPipelineProvider
Deprecated.protected SAML2MetadataResolver
Deprecated.protected org.pac4j.core.util.generator.ValueGenerator
Deprecated.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Deprecated.Deprecated.final SAML2Configuration
Deprecated.Deprecated.final SAML2MetadataResolver
Deprecated.final String
Deprecated.Deprecated.protected SAML2LogoutMessageReceiver
Deprecated.SAML2ProfileHandler<org.opensaml.saml.saml2.core.LogoutRequest>
Deprecated.protected SAML2LogoutRequestMessageSender
Deprecated.Deprecated.SAML2ProfileHandler<org.opensaml.saml.saml2.core.AuthnRequest>
Deprecated.Deprecated.final SAML2MetadataResolver
Deprecated.final String
Deprecated.Deprecated.Deprecated.Deprecated.org.pac4j.core.util.generator.ValueGenerator
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
Deprecated.protected void
internalInit
(boolean forceReinit) Deprecated.void
notifySessionRenewal
(String oldSessionId, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) Deprecated.void
setConfiguration
(SAML2Configuration configuration) Deprecated.void
setLogoutProfileHandler
(SAML2ProfileHandler<org.opensaml.saml.saml2.core.LogoutRequest> logoutProfileHandler) Deprecated.void
setStateGenerator
(org.pac4j.core.util.generator.ValueGenerator stateGenerator) Deprecated.Methods inherited from class org.pac4j.core.client.IndirectClient
afterInternalInit, beforeInternalInit, computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCodeVerifierSessionAttributeName, getCredentials, getLogoutAction, getLogoutActionBuilder, getNonceSessionAttributeName, getRedirectionAction, getRedirectionActionBuilder, getStateSessionAttributeName, getUrlResolver, isCheckAuthenticationAttempt, newDefaultCallbackUrlResolver, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setCheckAuthenticationAttempt, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolver, toString
Methods inherited from class org.pac4j.core.client.BaseClient
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getProfileFactoryWhenNotAuthenticated, getSaveProfileInSession, getUserProfile, isMultiProfile, renewUserProfile, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setMultiProfile, setName, setProfileCreator, setProfileFactoryWhenNotAuthenticated, setSaveProfileInSession
Methods inherited from class org.pac4j.core.util.InitializableObject
getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize
-
Field Details
-
contextProvider
Deprecated. -
signatureSigningParametersProvider
Deprecated. -
profileHandler
Deprecated. -
logoutProfileHandler
Deprecated. -
authnResponseValidator
Deprecated. -
logoutValidator
Deprecated. -
signatureTrustEngineProvider
Deprecated. -
idpMetadataResolver
Deprecated. -
spMetadataResolver
Deprecated. -
decrypter
protected org.opensaml.saml.saml2.encryption.Decrypter decrypterDeprecated. -
configuration
Deprecated. -
stateGenerator
protected org.pac4j.core.util.generator.ValueGenerator stateGeneratorDeprecated. -
replayCache
Deprecated. -
soapPipelineProvider
Deprecated.
-
-
Constructor Details
-
SAML2Client
public SAML2Client()Deprecated. -
SAML2Client
Deprecated.
-
-
Method Details
-
internalInit
protected void internalInit(boolean forceReinit) Deprecated.- Specified by:
internalInit
in classorg.pac4j.core.util.InitializableObject
-
initSOAPPipelineProvider
protected void initSOAPPipelineProvider()Deprecated. -
initSAMLProfileHandler
protected void initSAMLProfileHandler()Deprecated. -
initSAMLLogoutProfileHandler
protected void initSAMLLogoutProfileHandler()Deprecated. -
getLogoutMessageReceiver
Deprecated. -
getLogoutRequestMessageSender
Deprecated. -
initSAMLLogoutResponseValidator
protected void initSAMLLogoutResponseValidator()Deprecated. -
initSAMLResponseValidator
protected void initSAMLResponseValidator()Deprecated. -
initSignatureTrustEngineProvider
protected void initSignatureTrustEngineProvider()Deprecated. -
initSAMLContextProvider
protected void initSAMLContextProvider()Deprecated. -
initServiceProviderMetadataResolver
protected void initServiceProviderMetadataResolver()Deprecated. -
initIdentityProviderMetadataResolver
protected void initIdentityProviderMetadataResolver()Deprecated. -
initDecrypter
protected void initDecrypter()Deprecated. -
initSignatureSigningParametersProvider
protected void initSignatureSigningParametersProvider()Deprecated. -
initSAMLReplayCache
protected void initSAMLReplayCache()Deprecated. -
destroy
public void destroy()Deprecated. -
notifySessionRenewal
public void notifySessionRenewal(String oldSessionId, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) Deprecated.- Overrides:
notifySessionRenewal
in classorg.pac4j.core.client.BaseClient
-
getAuthnResponseValidator
Deprecated. -
getServiceProviderMetadataResolver
Deprecated. -
getIdentityProviderMetadataResolver
Deprecated. -
getIdentityProviderResolvedEntityId
Deprecated. -
getServiceProviderResolvedEntityId
Deprecated. -
setConfiguration
Deprecated. -
getConfiguration
Deprecated. -
getContextProvider
Deprecated. -
getLogoutValidator
Deprecated. -
getIdpMetadataResolver
Deprecated. -
getSpMetadataResolver
Deprecated. -
getProfileHandler
Deprecated. -
getSignatureSigningParametersProvider
Deprecated. -
getSignatureTrustEngineProvider
Deprecated. -
getStateGenerator
public org.pac4j.core.util.generator.ValueGenerator getStateGenerator()Deprecated. -
setStateGenerator
public void setStateGenerator(org.pac4j.core.util.generator.ValueGenerator stateGenerator) Deprecated. -
getLogoutProfileHandler
Deprecated. -
setLogoutProfileHandler
public void setLogoutProfileHandler(SAML2ProfileHandler<org.opensaml.saml.saml2.core.LogoutRequest> logoutProfileHandler) Deprecated. -
getReplayCache
Deprecated.
-