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
FieldsModifier and TypeFieldDescriptionprotected SAML2ResponseValidatorDeprecated.protected SAML2ConfigurationDeprecated.protected SAMLContextProviderDeprecated.protected org.opensaml.saml.saml2.encryption.DecrypterDeprecated.protected SAML2MetadataResolverDeprecated.protected SAML2ProfileHandler<org.opensaml.saml.saml2.core.LogoutRequest>Deprecated.protected SAML2LogoutValidatorDeprecated.protected SAML2ProfileHandler<org.opensaml.saml.saml2.core.AuthnRequest>Deprecated.protected ReplayCacheProviderDeprecated.protected SignatureSigningParametersProviderDeprecated.protected SAML2SignatureTrustEngineProviderDeprecated.protected SOAPPipelineProviderDeprecated.protected SAML2MetadataResolverDeprecated.protected org.pac4j.core.util.generator.ValueGeneratorDeprecated.Fields inherited from class org.pac4j.core.client.IndirectClient
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolverFields inherited from class org.pac4j.core.client.BaseClient
logger, saveProfileInSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Deprecated.Deprecated.final SAML2ConfigurationDeprecated.Deprecated.final SAML2MetadataResolverDeprecated.final StringDeprecated.Deprecated.protected SAML2LogoutMessageReceiverDeprecated.SAML2ProfileHandler<org.opensaml.saml.saml2.core.LogoutRequest>Deprecated.protected SAML2LogoutRequestMessageSenderDeprecated.Deprecated.SAML2ProfileHandler<org.opensaml.saml.saml2.core.AuthnRequest>Deprecated.Deprecated.final SAML2MetadataResolverDeprecated.final StringDeprecated.Deprecated.Deprecated.Deprecated.org.pac4j.core.util.generator.ValueGeneratorDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidinternalInit(boolean forceReinit) Deprecated.voidnotifySessionRenewal(String oldSessionId, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) Deprecated.voidsetConfiguration(SAML2Configuration configuration) Deprecated.voidsetLogoutProfileHandler(SAML2ProfileHandler<org.opensaml.saml.saml2.core.LogoutRequest> logoutProfileHandler) Deprecated.voidsetStateGenerator(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, toStringMethods 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, setSaveProfileInSessionMethods 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:
internalInitin 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:
notifySessionRenewalin 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.
-