Class AbstractAuthnRequestBuilder<BUILDER extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>>
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>
se.swedenconnect.opensaml.saml2.core.build.AbstractRequestBuilder<org.opensaml.saml.saml2.core.AuthnRequest,BUILDER>
se.swedenconnect.opensaml.saml2.core.build.AbstractAuthnRequestBuilder<BUILDER>
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>
- Direct Known Subclasses:
AuthnRequestBuilder
public abstract class AbstractAuthnRequestBuilder<BUILDER extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>>
extends AbstractRequestBuilder<org.opensaml.saml.saml2.core.AuthnRequest,BUILDER>
Abstract builder for
AuthnRequest
messages.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAssigns theAssertionConsumerServiceIndex
attribute to theAuthnRequest
object.Assigns theAssertionConsumerServiceURL
attribute to theAuthnRequest
object.Assigns theAttributeConsumerServiceIndex
attribute to theAuthnRequest
object.org.opensaml.saml.saml2.core.AuthnRequest
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
(org.opensaml.saml.saml2.core.Conditions conditions) Assigns aConditions
element to theAuthnRequest
object.Assigns theForceAuthn
attribute to theAuthnRequest
object.protected Class
<org.opensaml.saml.saml2.core.AuthnRequest> Returns the object type.Assigns theIsPassive
attribute to theAuthnRequest
object.nameIDPolicy
(org.opensaml.saml.saml2.core.NameIDPolicy nameIDPolicy) Assigns aNameIDPolicy
element to theAuthnRequest
object.AssignsSAMLConstants.SAML2_POST_BINDING_URI
to theProtocolBinding
attribute of theAuthnRequest
object.protocolBinding
(String binding) Assigns theProtocolBinding
attribute to theAuthnRequest
object.providerName
(String name) Assigns theProviderName
attribute to theAuthnRequest
object.requestedAuthnContext
(org.opensaml.saml.saml2.core.RequestedAuthnContext requestedAuthnContext) Assigns aRequestedAuthnContext
element to theAuthnRequest
object.scoping
(org.opensaml.saml.saml2.core.Scoping scoping) Assigns aScoping
element to theAuthnRequest
object.subject
(org.opensaml.saml.saml2.core.Subject subject) Assigns aSubject
element to theAuthnRequest
object.Methods inherited from class se.swedenconnect.opensaml.saml2.core.build.AbstractRequestBuilder
consent, destination, extensions, getThis, id, issueInstant, issuer, issuer, version, version
Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
getDefaultElementName, object
-
Constructor Details
-
AbstractAuthnRequestBuilder
public AbstractAuthnRequestBuilder()
-
-
Method Details
-
build
public org.opensaml.saml.saml2.core.AuthnRequest 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:
build
in interfaceSAMLObjectBuilder<BUILDER extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>>
- Overrides:
build
in classAbstractRequestBuilder<org.opensaml.saml.saml2.core.AuthnRequest,
BUILDER extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>> - Returns:
- the built object
-
forceAuthn
Assigns theForceAuthn
attribute to theAuthnRequest
object.- Parameters:
b
- boolean flag- Returns:
- the builder
-
isPassive
Assigns theIsPassive
attribute to theAuthnRequest
object.- Parameters:
b
- boolean flag- Returns:
- the builder
-
protocolBinding
Assigns theProtocolBinding
attribute to theAuthnRequest
object.- Parameters:
binding
- the binding URI- Returns:
- the builder
- See Also:
-
postProtocolBinding
AssignsSAMLConstants.SAML2_POST_BINDING_URI
to theProtocolBinding
attribute of theAuthnRequest
object.This is the default.
- Returns:
- the builder
-
assertionConsumerServiceIndex
Assigns theAssertionConsumerServiceIndex
attribute to theAuthnRequest
object.- Parameters:
index
- the index- Returns:
- the builder
-
assertionConsumerServiceURL
Assigns theAssertionConsumerServiceURL
attribute to theAuthnRequest
object.- Parameters:
url
- the URL- Returns:
- the builder
-
attributeConsumerServiceIndex
Assigns theAttributeConsumerServiceIndex
attribute to theAuthnRequest
object.- Parameters:
index
- the index- Returns:
- the builder
-
providerName
Assigns theProviderName
attribute to theAuthnRequest
object.- Parameters:
name
- the provider name- Returns:
- the builder
-
subject
Assigns aSubject
element to theAuthnRequest
object.- Parameters:
subject
- the subject (will be cloned before assignment)- Returns:
- the builder
-
nameIDPolicy
Assigns aNameIDPolicy
element to theAuthnRequest
object.- Parameters:
nameIDPolicy
- the nameID policy (will be cloned before assignment)- Returns:
- the builder
- See Also:
-
conditions
Assigns aConditions
element to theAuthnRequest
object.- Parameters:
conditions
- the request conditions (will be cloned before assignment)- Returns:
- the builder
-
requestedAuthnContext
public BUILDER requestedAuthnContext(org.opensaml.saml.saml2.core.RequestedAuthnContext requestedAuthnContext) Assigns aRequestedAuthnContext
element to theAuthnRequest
object.- Parameters:
requestedAuthnContext
- the requested authentication context (will be cloned before assignment)- Returns:
- the builder
- See Also:
-
scoping
Assigns aScoping
element to theAuthnRequest
object.- Parameters:
scoping
- the scoping element to add (will be cloned before assignment)- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.core.AuthnRequest>
- Returns:
- the object type
-