Uses of Class
se.swedenconnect.spring.saml.idp.error.Saml2ErrorStatusException
Package
Description
Support for SAML
NameID
s.Support for user authentication including SSO.
Authentication provider support.
Support for "external user authentication", i.e., when we redirect the user outside of the Spring Security flow to
get authenticated.
Support for processing SAML authentication requests.
Validation of SAML2 authentication requests.
Non-standard SAML extensions.
Support for sending SAML response messages.
-
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.attributes.nameid
Modifier and TypeMethodDescriptionprotected NameIDGenerator
DefaultNameIDGeneratorFactory.createNameIDGenerator
(String format, String nameQualifier, String spNameQualifier) Creates aNameIDGenerator
based on the supplied format.DefaultNameIDGeneratorFactory.getNameIDGenerator
(org.opensaml.saml.saml2.core.AuthnRequest authnRequest, org.opensaml.saml.saml2.metadata.EntityDescriptor peerMetadata) Given the requirements for aNameID
in theAuthnRequest
andEntityDescriptor
along with the IdP policy the method returns aNameIDGenerator
.NameIDGeneratorFactory.getNameIDGenerator
(org.opensaml.saml.saml2.core.AuthnRequest authnRequest, org.opensaml.saml.saml2.metadata.EntityDescriptor peerMetadata) Given the requirements for aNameID
in theAuthnRequest
andEntityDescriptor
along with the IdP policy the method returns aNameIDGenerator
. -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.authentication
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.core.Assertion
Saml2AssertionBuilder.buildAssertion
(Saml2UserAuthentication userAuthentication) Given aSaml2UserAuthentication
object a SAMLAssertion
is built.void
DelegatingPostAuthenticationProcessor.process
(Saml2UserAuthentication token) Applies post-processing of aSaml2UserAuthentication
token.void
PostAuthenticationProcessor.process
(Saml2UserAuthentication token) Applies post-processing of aSaml2UserAuthentication
token.void
SwedenConnectPostAuthenticationProcessor.process
(Saml2UserAuthentication token) Applies the following checks: If the request is from a Signature Service and the SignMessage has been flagged with "must show" the method asserts that a sign message has been displayed during authentication. TODO: more ... -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.authentication.provider
Modifier and TypeMethodDescriptionprotected abstract org.springframework.security.core.Authentication
AbstractUserAuthenticationProvider.authenticate
(Saml2UserAuthenticationInputToken token, List<String> authnContextUris) Authenticates the user (after the necessary checks have been made).org.springframework.security.core.Authentication
AbstractUserAuthenticationProvider.authenticateUser
(Saml2UserAuthenticationInputToken token) Performs the user authentication.org.springframework.security.core.Authentication
UserAuthenticationProvider.authenticateUser
(Saml2UserAuthenticationInputToken token) Performs the user authentication. -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.authentication.provider.external
Modifier and TypeMethodDescriptionResumedAuthenticationToken.getError()
If this authentication object represents an authentication error the method returns this error.Modifier and TypeMethodDescriptionprotected ModelAndView
AbstractAuthenticationController.complete
(jakarta.servlet.http.HttpServletRequest request, Saml2ErrorStatusException error) Utility method that saves the authentication error in theExternalAuthenticatorTokenRepository
of the provider and redirects the user back to the SAML IdP Spring Security flow (UserRedirectAuthenticationProvider.getResumeAuthnPath()
).void
ExternalAuthenticatorTokenRepository.completeExternalAuthentication
(Saml2ErrorStatusException error, jakarta.servlet.http.HttpServletRequest request) Is invoken to commit theSaml2ErrorStatusException
that is a description for a failed user authentication.void
SessionBasedExternalAuthenticationRepository.completeExternalAuthentication
(Saml2ErrorStatusException error, jakarta.servlet.http.HttpServletRequest request) Is invoken to commit theSaml2ErrorStatusException
that is a description for a failed user authentication.Modifier and TypeMethodDescriptionprotected org.springframework.security.core.Authentication
AbstractUserRedirectAuthenticationProvider.authenticate
(Saml2UserAuthenticationInputToken token, List<String> authnContextUris) Will redirect to the configured authentication path (AbstractUserRedirectAuthenticationProvider.getAuthnPath()
) by returning aRedirectForAuthenticationToken
.UserRedirectAuthenticationProvider.resumeAuthentication
(ResumedAuthenticationToken token) Is invoked when the user has been authenticated outside the SAML IdP Spring Security flow and the user agent has been re-directed back to theUserRedirectAuthenticationProvider.getResumeAuthnPath()
.ModifierConstructorDescriptionConstructor setting up the token to represent an authentication error. -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.authnrequest
Modifier and TypeMethodDescriptionprotected AuthenticationRequirements
Saml2AuthnRequestAuthenticationProvider.createAuthenticationRequirements
(Saml2AuthnRequestAuthenticationToken token) Creates anAuthenticationRequirements
object. -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.authnrequest.validation
Modifier and TypeMethodDescriptionvoid
AuthnRequestEncryptCapabilitiesValidator.validate
(Saml2AuthnRequestAuthenticationToken authnRequestToken) Performs validation of a feature/requirement regarding the supplied SAML 2 authentication request.void
AuthnRequestReplayValidator.validate
(Saml2AuthnRequestAuthenticationToken authnRequestToken) Performs validation of a feature/requirement regarding the supplied SAML 2 authentication request.void
AuthnRequestValidator.validate
(Saml2AuthnRequestAuthenticationToken authnRequestToken) Performs validation of a feature/requirement regarding the supplied SAML 2 authentication request. -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.extensions
Modifier and TypeMethodDescriptionDefaultSignatureMessageExtensionExtractor.extract
(Saml2AuthnRequestAuthenticationToken token) Given an authentication request, the method will extract theSignMessage
extension, and if it is encrypted also decrypt it.SignatureMessageExtensionExtractor.extract
(Saml2AuthnRequestAuthenticationToken token) Given an authentication request, the method will extract theSignMessage
extension, and if it is encrypted also decrypt it.SignatureMessagePreprocessor.processSignMessage
(String encodedMessage, se.swedenconnect.opensaml.sweid.saml2.signservice.dss.SignMessageMimeTypeEnum messageType) Applies processing of the supplied message where filtering, validation and transformation to the service's desired display format can be done.UserMessagePreprocessor.processUserMessage
(Map<String, String> encodedMessages, MimeType mimeType) Applies processing of the supplied message where filtering, validation and transformation to the service's desired display format can be done. -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.response
Modifier and TypeMethodDescriptionorg.opensaml.saml.saml2.core.Response
Saml2ResponseBuilder.buildErrorResponse
(Saml2ResponseAttributes responseAttributes, Saml2ErrorStatusException error) Given aSaml2ErrorStatusException
exception, the method builds aResponse
object indicating the errorStatus
given by the exception and signs it.