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()The default implementation of this method assumes that the object has been built during assignment of its attributes and elements, so it simply returns the object.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 se.swedenconnect.opensaml.saml2.core.build.AbstractRequestBuilder
consent, destination, extensions, getThis, id, issueInstant, issuer, issuer, version, versionMethods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
getDefaultElementName, object
-
Constructor Details
-
AbstractAuthnRequestBuilder
public AbstractAuthnRequestBuilder()
-
-
Method Details
-
build
The default implementation of this method assumes that the object has been built during assignment of its attributes and elements, so it simply returns the object.Implementations that need to perform additional processing during the build step should override this method.
- Specified by:
buildin interfaceSAMLObjectBuilder<BUILDER extends AbstractSAMLObjectBuilder<AuthnRequest>>- Overrides:
buildin classAbstractRequestBuilder<AuthnRequest,BUILDER extends AbstractSAMLObjectBuilder<AuthnRequest>> - Returns:
- the built object
-
forceAuthn
Assigns theForceAuthnattribute to theAuthnRequestobject.- Parameters:
b- boolean flag- Returns:
- the builder
-
isPassive
Assigns theIsPassiveattribute to theAuthnRequestobject.- Parameters:
b- boolean flag- Returns:
- the builder
-
protocolBinding
Assigns theProtocolBindingattribute to theAuthnRequestobject.- Parameters:
binding- the binding URI- Returns:
- the builder
- See Also:
-
postProtocolBinding
AssignsSAMLConstants.SAML2_POST_BINDING_URIto theProtocolBindingattribute of theAuthnRequestobject.This is the default.
- Returns:
- the builder
-
assertionConsumerServiceIndex
Assigns theAssertionConsumerServiceIndexattribute to theAuthnRequestobject.- Parameters:
index- the index- Returns:
- the builder
-
assertionConsumerServiceURL
Assigns theAssertionConsumerServiceURLattribute to theAuthnRequestobject.- Parameters:
url- the URL- Returns:
- the builder
-
attributeConsumerServiceIndex
Assigns theAttributeConsumerServiceIndexattribute to theAuthnRequestobject.- Parameters:
index- the index- Returns:
- the builder
-
providerName
Assigns theProviderNameattribute to theAuthnRequestobject.- Parameters:
name- the provider name- Returns:
- the builder
-
subject
Assigns aSubjectelement to theAuthnRequestobject.- Parameters:
subject- the subject (will be cloned before assignment)- Returns:
- the builder
-
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
Assigns aScopingelement to theAuthnRequestobject.- Parameters:
scoping- the scoping element to add (will be cloned before assignment)- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<AuthnRequest>- Returns:
- the object type
-