Uses of Class
se.swedenconnect.spring.saml.idp.error.Saml2ErrorStatusException
Packages that use Saml2ErrorStatusException
Package
Description
Support for SAML
NameIDs.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 NameIDGeneratorDefaultNameIDGeneratorFactory.createNameIDGenerator(String format, String nameQualifier, String spNameQualifier) Creates aNameIDGeneratorbased on the supplied format.DefaultNameIDGeneratorFactory.getNameIDGenerator(AuthnRequest authnRequest, EntityDescriptor peerMetadata) Given the requirements for aNameIDin theAuthnRequestandEntityDescriptoralong with the IdP policy the method returns aNameIDGenerator.NameIDGeneratorFactory.getNameIDGenerator(AuthnRequest authnRequest, EntityDescriptor peerMetadata) Given the requirements for aNameIDin theAuthnRequestandEntityDescriptoralong 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 aSaml2UserAuthenticationobject a SAMLAssertionis built.voidDelegatingPostAuthenticationProcessor.process(Saml2UserAuthentication token) Applies post-processing of aSaml2UserAuthenticationtoken.voidPostAuthenticationProcessor.process(Saml2UserAuthentication token) Applies post-processing of aSaml2UserAuthenticationtoken.voidSwedenConnectPostAuthenticationProcessor.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.AuthenticationAbstractUserAuthenticationProvider.authenticate(Saml2UserAuthenticationInputToken token, List<String> authnContextUris) Authenticates the user (after the necessary checks have been made).org.springframework.security.core.AuthenticationAbstractUserAuthenticationProvider.authenticateUser(Saml2UserAuthenticationInputToken token) Performs the user authentication.org.springframework.security.core.AuthenticationUserAuthenticationProvider.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 ModelAndViewAbstractAuthenticationController.complete(jakarta.servlet.http.HttpServletRequest request, Saml2ErrorStatusException error) Utility method that saves the authentication error in theExternalAuthenticatorTokenRepositoryof the provider and redirects the user back to the SAML IdP Spring Security flow (UserRedirectAuthenticationProvider.getResumeAuthnPath()).voidExternalAuthenticatorTokenRepository.completeExternalAuthentication(Saml2ErrorStatusException error, jakarta.servlet.http.HttpServletRequest request) Is invoken to commit theSaml2ErrorStatusExceptionthat is a description for a failed user authentication.voidSessionBasedExternalAuthenticationRepository.completeExternalAuthentication(Saml2ErrorStatusException error, jakarta.servlet.http.HttpServletRequest request) Is invoken to commit theSaml2ErrorStatusExceptionthat 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.AuthenticationAbstractUserRedirectAuthenticationProvider.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 AuthenticationRequirementsSaml2AuthnRequestAuthenticationProvider.createAuthenticationRequirements(Saml2AuthnRequestAuthenticationToken token) Creates anAuthenticationRequirementsobject. -
Uses of Saml2ErrorStatusException in se.swedenconnect.spring.saml.idp.authnrequest.validation
Methods in se.swedenconnect.spring.saml.idp.authnrequest.validation that throw Saml2ErrorStatusExceptionModifier and TypeMethodDescriptionvoidAuthnRequestEncryptCapabilitiesValidator.validate(Saml2AuthnRequestAuthenticationToken authnRequestToken) Performs validation of a feature/requirement regarding the supplied SAML 2 authentication request.voidAuthnRequestReplayValidator.validate(Saml2AuthnRequestAuthenticationToken authnRequestToken) Performs validation of a feature/requirement regarding the supplied SAML 2 authentication request.voidAuthnRequestValidator.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 theSignMessageextension, and if it is encrypted also decrypt it.SignatureMessageExtensionExtractor.extract(Saml2AuthnRequestAuthenticationToken token) Given an authentication request, the method will extract theSignMessageextension, 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 aSaml2ErrorStatusExceptionexception, the method builds aResponseobject indicating the errorStatusgiven by the exception and signs it.