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
AuthnRequestmessages.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 theAssertionConsumerServiceURLorAssertionConsumerServiceIndexattribute it will invoke theAuthnRequestGeneratorContext.getAssertionConsumerServiceResolver()method in order to get a function that given all possibleAssertionConsumerServiceelements (found in the SP metadata) will either return aString(holding theAssertionConsumerServiceURLto use) or anInteger(holding theAssertionConsumerServiceIndexto use).If the SP metadata contains one or moreAttributeConsumingServiceelements, the generator needs to know whether to include theAttributeConsumingServiceIndexattribute, 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.ANameIDPolicyBuilderFunctionis used by the generator to create theNameIDPolicyelement.The generator will need to know how to build theRequestedAuthnContextelement that is to be included in theAuthnRequest.A default implementation of theAuthnRequestGeneratorwhere a metadata resolver is used to locate metadata.PostRequestHttpObject<T extends RequestAbstractType>A RequestHttpObject for sending using HTTP POST.RedirectRequestHttpObject<T extends RequestAbstractType>A RequestHttpObject for sending using HTTP GET (redirect binding).Exception class for indicating errors during a request generation.RequestHttpObject<T extends 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 RequestAbstractType>A generic request builder that is used to create Request messages.