Package se.swedenconnect.opensaml.saml2.request
package se.swedenconnect.opensaml.saml2.request
Interfaces and classes for handling SAML requests.
-
ClassDescriptionAbstract base class for generating AuthnRequest messages.Interface for generating
AuthnRequest
messages.Defines a context which can be used to control howAuthnRequestGenerator.generateAuthnRequest(String, String, AuthnRequestGeneratorContext)
creates an authentication request.When the generator is about to add theAssertionConsumerServiceURL
orAssertionConsumerServiceIndex
attribute it will invoke theAuthnRequestGeneratorContext.getAssertionConsumerServiceResolver()
method in order to get a function that given all possibleAssertionConsumerService
elements (found in the SP metadata) will either return aString
(holding theAssertionConsumerServiceURL
to use) or anInteger
(holding theAssertionConsumerServiceIndex
to use).If the SP metadata contains one or moreAttributeConsumingService
elements, the generator needs to know whether to include theAttributeConsumingServiceIndex
attribute, and if so, which index to use.When the generator is done building theAuthnRequest
, but before it is signed, it will ask theAuthnRequestGeneratorContext.getAuthnRequestCustomizer()
method for the customizer that may operate and add customizations to the request object.Enumeration that tells whether the Holder-of-key WebSSO profile is required, optional or not active.ANameIDPolicyBuilderFunction
is used by the generator to create theNameIDPolicy
element.The generator will need to know how to build theRequestedAuthnContext
element that is to be included in theAuthnRequest
.A default implementation of theAuthnRequestGenerator
where a metadata resolver is used to locate metadata.PostRequestHttpObject<T extends org.opensaml.saml.saml2.core.RequestAbstractType>A RequestHttpObject for sending using HTTP POST.RedirectRequestHttpObject<T extends org.opensaml.saml.saml2.core.RequestAbstractType>A RequestHttpObject for sending using HTTP GET (redirect binding).Exception class for indicating errors during a request generation.RequestHttpObject<T extends org.opensaml.saml.saml2.core.RequestAbstractType>Defines an interface that represents an object that holds data necessary for the SP application to transmit a request message to an IdP.RequestHttpObjectBuilder<T extends org.opensaml.saml.saml2.core.RequestAbstractType>A generic request builder that is used to create Request messages.