Class AbstractAuthnRequestBuilder<BUILDER extends AbstractSAMLObjectBuilder<AuthnRequest>>
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<AuthnRequest>
se.swedenconnect.opensaml.saml2.core.build.AbstractRequestBuilder<AuthnRequest, BUILDER>
se.swedenconnect.opensaml.saml2.core.build.AbstractAuthnRequestBuilder<BUILDER>
- All Implemented Interfaces:
SAMLObjectBuilder<AuthnRequest>
- Direct Known Subclasses:
AuthnRequestBuilder
public abstract class AbstractAuthnRequestBuilder<BUILDER extends AbstractSAMLObjectBuilder<AuthnRequest>>
extends AbstractRequestBuilder<AuthnRequest, BUILDER>
Abstract builder for
AuthnRequest messages.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssigns theAssertionConsumerServiceIndexattribute to theAuthnRequestobject.Assigns theAssertionConsumerServiceURLattribute to theAuthnRequestobject.Assigns theAttributeConsumerServiceIndexattribute to theAuthnRequestobject.build()Builds theAuthnRequest.conditions(Conditions conditions) Assigns aConditionselement to theAuthnRequestobject.Assigns theForceAuthnattribute to theAuthnRequestobject.protected Class<AuthnRequest> Returns the object type.Assigns theIsPassiveattribute to theAuthnRequestobject.nameIDPolicy(NameIDPolicy nameIDPolicy) Assigns aNameIDPolicyelement to theAuthnRequestobject.AssignsSAMLConstants.SAML2_POST_BINDING_URIto theProtocolBindingattribute of theAuthnRequestobject.protocolBinding(String binding) Assigns theProtocolBindingattribute to theAuthnRequestobject.providerName(String name) Assigns theProviderNameattribute to theAuthnRequestobject.requestedAuthnContext(RequestedAuthnContext requestedAuthnContext) Assigns aRequestedAuthnContextelement to theAuthnRequestobject.Assigns aScopingelement to theAuthnRequestobject.Assigns aSubjectelement to theAuthnRequestobject.Methods inherited from class AbstractRequestBuilder
consent, destination, extensions, getThis, id, issueInstant, issuer, issuer, version, versionMethods inherited from class AbstractSAMLObjectBuilder
getDefaultElementName, object
-
Constructor Details
-
AbstractAuthnRequestBuilder
public AbstractAuthnRequestBuilder()
-
-
Method Details
-
build
Builds theAuthnRequest. If noProtocolBindinghas been assigned, it is set to HTTP-POST, unlessAssertionConsumerServiceIndexhas been assigned (the two attributes are mutually exclusive).- Specified by:
buildin interfaceSAMLObjectBuilder<BUILDER extends AbstractSAMLObjectBuilder<AuthnRequest>>- Overrides:
buildin classAbstractRequestBuilder<AuthnRequest, BUILDER extends AbstractSAMLObjectBuilder<AuthnRequest>>- Returns:
- the built object
-
forceAuthn
-
isPassive
-
protocolBinding
-
postProtocolBinding
AssignsSAMLConstants.SAML2_POST_BINDING_URIto theProtocolBindingattribute of theAuthnRequestobject.This is the default.
- Returns:
- the builder
-
assertionConsumerServiceIndex
-
assertionConsumerServiceURL
-
attributeConsumerServiceIndex
-
providerName
-
subject
-
nameIDPolicy
Assigns aNameIDPolicyelement to theAuthnRequestobject.- Parameters:
nameIDPolicy- the nameID policy (will be cloned before assignment)- Returns:
- the builder
- See Also:
-
conditions
Assigns aConditionselement to theAuthnRequestobject.- Parameters:
conditions- the request conditions (will be cloned before assignment)- Returns:
- the builder
-
requestedAuthnContext
Assigns aRequestedAuthnContextelement to theAuthnRequestobject.- Parameters:
requestedAuthnContext- the requested authentication context (will be cloned before assignment)- Returns:
- the builder
- See Also:
-
scoping
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<AuthnRequest>- Returns:
- the object type
-