Uses of Class
se.swedenconnect.spring.saml.idp.error.Saml2ErrorStatusException
Packages that use 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
Methods in se.swedenconnect.spring.saml.idp.attributes.nameid that throw Saml2ErrorStatusExceptionModifier and TypeMethodDescriptionprotected NameIDGenerator
DefaultNameIDGeneratorFactory.createNameIDGenerator
(String format, String nameQualifier, String spNameQualifier) Creates aNameIDGenerator
based on the supplied format.DefaultNameIDGeneratorFactory.getNameIDGenerator
(AuthnRequest authnRequest, EntityDescriptor peerMetadata) Given the requirements for aNameID
in theAuthnRequest
andEntityDescriptor
along with the IdP policy the method returns aNameIDGenerator
.NameIDGeneratorFactory.getNameIDGenerator
(AuthnRequest authnRequest, 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
Methods in se.swedenconnect.spring.saml.idp.authentication that throw Saml2ErrorStatusExceptionModifier and TypeMethodDescriptionSaml2AssertionBuilder.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
Methods in se.swedenconnect.spring.saml.idp.authentication.provider that throw Saml2ErrorStatusExceptionModifier 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
Methods in se.swedenconnect.spring.saml.idp.authentication.provider.external that return Saml2ErrorStatusExceptionModifier and TypeMethodDescriptionResumedAuthenticationToken.getError()
If this authentication object represents an authentication error the method returns this error.Methods in se.swedenconnect.spring.saml.idp.authentication.provider.external with parameters of type Saml2ErrorStatusExceptionModifier 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.Methods in se.swedenconnect.spring.saml.idp.authentication.provider.external that throw Saml2ErrorStatusExceptionModifier 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()
.Constructors in se.swedenconnect.spring.saml.idp.authentication.provider.external with parameters of type Saml2ErrorStatusExceptionModifierConstructorDescriptionConstructor setting up the token to represent an authentication error. -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.authnrequest
Methods in se.swedenconnect.spring.saml.idp.authnrequest that throw Saml2ErrorStatusExceptionModifier and TypeMethodDescriptionprotected AuthenticationRequirements
Saml2AuthnRequestAuthenticationProvider.createAuthenticationRequirements
(Saml2AuthnRequestAuthenticationToken token) Creates anAuthenticationRequirements
object. -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.authnrequest.validation
Methods in se.swedenconnect.spring.saml.idp.authnrequest.validation that throw Saml2ErrorStatusExceptionModifier 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
Methods in se.swedenconnect.spring.saml.idp.extensions that throw Saml2ErrorStatusExceptionModifier 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
Methods in se.swedenconnect.spring.saml.idp.response with parameters of type Saml2ErrorStatusExceptionModifier and TypeMethodDescriptionSaml2ResponseBuilder.buildErrorResponse
(Saml2ResponseAttributes responseAttributes, Saml2ErrorStatusException error) Given aSaml2ErrorStatusException
exception, the method builds aResponse
object indicating the errorStatus
given by the exception and signs it.