Uses of Class
se.swedenconnect.signservice.authn.UserAuthenticationException
Package
Description
SignService Authentication Support.
A mocked authentication handler that may be used in testing scenarios.
SAML Authentication Handlers.
-
Uses of UserAuthenticationException in se.swedenconnect.signservice.authn
Modifier and TypeMethodDescriptionAuthenticationHandler.authenticate
(AuthnRequirements authnRequirements, SignMessage signMessage, SignServiceContext context) Initiates authentication of the user.AuthenticationHandler.resumeAuthentication
(HttpUserRequest request, SignServiceContext context) Resumes an authentication process. -
Uses of UserAuthenticationException in se.swedenconnect.signservice.authn.mock
Modifier and TypeMethodDescriptionMockedAuthenticationHandler.authenticate
(AuthnRequirements authnRequirements, SignMessage signMessage, SignServiceContext context) Initiates authentication of the user.MockedAuthenticationHandler.resumeAuthentication
(HttpUserRequest httpRequest, SignServiceContext context) Resumes an authentication process. -
Uses of UserAuthenticationException in se.swedenconnect.signservice.authn.saml
Modifier and TypeMethodDescriptionprotected void
AbstractSamlAuthenticationHandler.assertAttributes
(AuthnRequirements authnRequirements, List<IdentityAttribute<?>> issuedAttributes, SignServiceContext context) Asserts that all requested signer attributes (from the SignRequest) is provided among the attributes from the identity assertion received from the IdP.protected void
AbstractSamlAuthenticationHandler.assertAuthnContext
(org.opensaml.saml.saml2.core.AuthnRequest authnRequest, String authnContextClassUri, SignServiceContext context) Asserts that we received an authentication context class that we can accept.protected void
AbstractSamlAuthenticationHandler.assertSignMessage
(SignMessage signMessage, List<IdentityAttribute<?>> attributes, se.swedenconnect.opensaml.saml2.response.ResponseProcessingResult result, org.opensaml.saml.saml2.core.AuthnRequest authnRequest, SignServiceContext context) Asserts the signature message.protected void
SwedenConnectSamlAuthenticationHandler.assertSignMessage
(SignMessage signMessage, List<IdentityAttribute<?>> attributes, se.swedenconnect.opensaml.saml2.response.ResponseProcessingResult result, org.opensaml.saml.saml2.core.AuthnRequest authnRequest, SignServiceContext context) Asserts that we received a signMessageDigest attribute if SignMessage was sent.AbstractSamlAuthenticationHandler.authenticate
(AuthnRequirements authnRequirements, SignMessage signMessage, SignServiceContext context) Initiates authentication of the user.protected IdentityAssertion
AbstractSamlAuthenticationHandler.buildIdentityAssertion
(se.swedenconnect.opensaml.saml2.response.ResponseProcessingResult result, List<IdentityAttribute<?>> attributes, SignServiceContext context) Given aResponseProcessingResult
the method builds anIdentityAssertion
object.protected se.swedenconnect.opensaml.saml2.request.AuthnRequestGeneratorContext
AbstractSamlAuthenticationHandler.createAuthnRequestContext
(AuthnRequirements authnRequirements, SignMessage signMessage, SignServiceContext context, org.opensaml.saml.saml2.metadata.EntityDescriptor idpMetadata) Creates anAuthnRequestGeneratorContext
object that is to be used by the configuredAuthnRequestGenerator
.protected se.swedenconnect.opensaml.saml2.request.AuthnRequestGeneratorContext
SwedenConnectSamlAuthenticationHandler.createAuthnRequestContext
(AuthnRequirements authnRequirements, SignMessage signMessage, SignServiceContext context, org.opensaml.saml.saml2.metadata.EntityDescriptor idpMetadata) Extends the base implementation with support for SignMessage and PrincipalSelection.protected void
AbstractSamlAuthenticationHandler.extendedAssertionVerification
(AuthnRequirements authnRequirements, org.opensaml.saml.saml2.core.AuthnRequest authnRequest, se.swedenconnect.opensaml.saml2.response.ResponseProcessingResult result, SignServiceContext context) A method that enables subclasses to extend the verification of the received assertion.protected void
SwedenConnectSamlAuthenticationHandler.extendedAssertionVerification
(AuthnRequirements authnRequirements, org.opensaml.saml.saml2.core.AuthnRequest authnRequest, se.swedenconnect.opensaml.saml2.response.ResponseProcessingResult result, SignServiceContext context) Checks for a SAD request.protected org.opensaml.saml.saml2.core.AuthnRequest
AbstractSamlAuthenticationHandler.getAuthnRequest
(SignServiceContext context) Gets the storedAuthnRequest
from the session context.protected org.opensaml.saml.saml2.metadata.EntityDescriptor
AbstractSamlAuthenticationHandler.getIdpMetadata
(AuthnRequirements authnRequirements, SignServiceContext context) Finds the Identity Provider metadata from the federation given the authentication requirements.AbstractSamlAuthenticationHandler.resumeAuthentication
(HttpUserRequest httpRequest, SignServiceContext context) Resumes an authentication process.protected void
AbstractSamlAuthenticationHandler.storeAuthnRequest
(org.opensaml.saml.saml2.core.AuthnRequest authnRequest, SignServiceContext context) Stores a generatedAuthnRequest
message in the SignService context.protected List
<IdentityAttribute<?>> AbstractSamlAuthenticationHandler.transformAttributes
(List<org.opensaml.saml.saml2.core.Attribute> attributes) Transforms SAML attributes into the generic SignService-representation of attributes.protected boolean
AbstractSamlAuthenticationHandler.wasSignMessageDisplayed
(se.swedenconnect.opensaml.saml2.response.ResponseProcessingResult result, List<IdentityAttribute<?>> attributes, org.opensaml.saml.saml2.core.AuthnRequest authnRequest, SignServiceContext context) Given theResponseProcessingResult
and theAuthnRequest
the method determines if the sign message was displayed.protected boolean
SwedenConnectSamlAuthenticationHandler.wasSignMessageDisplayed
(se.swedenconnect.opensaml.saml2.response.ResponseProcessingResult result, List<IdentityAttribute<?>> attributes, org.opensaml.saml.saml2.core.AuthnRequest authnRequest, SignServiceContext context) Returnstrue
if the signMessageDigest attribute was received.