public abstract class AbstractAuthnRequestBuilder<BUILDER extends AbstractSAMLObjectBuilder<AuthnRequest>> extends AbstractRequestBuilder<AuthnRequest,BUILDER>
AuthnRequest messages.| Constructor and Description |
|---|
AbstractAuthnRequestBuilder() |
| Modifier and Type | Method and Description |
|---|---|
BUILDER |
assertionConsumerServiceIndex(Integer index)
Assigns the
AssertionConsumerServiceIndex attribute to the AuthnRequest object. |
BUILDER |
assertionConsumerServiceURL(String url)
Assigns the
AssertionConsumerServiceURL attribute to the AuthnRequest object. |
BUILDER |
attributeConsumerServiceIndex(Integer index)
Assigns the
AttributeConsumerServiceIndex attribute to the AuthnRequest object. |
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.
|
BUILDER |
conditions(Conditions conditions)
Assigns a
Conditions element to the AuthnRequest object. |
BUILDER |
forceAuthn(Boolean b)
Assigns the
ForceAuthn attribute to the AuthnRequest object. |
protected Class<AuthnRequest> |
getObjectType()
Returns the object type.
|
BUILDER |
isPassive(Boolean b)
Assigns the
IsPassive attribute to the AuthnRequest object. |
BUILDER |
nameIDPolicy(NameIDPolicy nameIDPolicy)
Assigns a
NameIDPolicy element to the AuthnRequest object. |
BUILDER |
postProtocolBinding()
Assigns
SAMLConstants.SAML2_POST_BINDING_URI to the ProtocolBinding attribute of the
AuthnRequest object. |
BUILDER |
protocolBinding(String binding)
Assigns the
ProtocolBinding attribute to the AuthnRequest object. |
BUILDER |
providerName(String name)
Assigns the
ProviderName attribute to the AuthnRequest object. |
BUILDER |
requestedAuthnContext(RequestedAuthnContext requestedAuthnContext)
Assigns a
RequestedAuthnContext element to the AuthnRequest object. |
BUILDER |
scoping(Scoping scoping)
Assigns a
Scoping element to the AuthnRequest object. |
BUILDER |
subject(Subject subject)
Assigns a
Subject element to the AuthnRequest object. |
consent, destination, extensions, getThis, id, issueInstant, issueInstant, issuer, issuer, version, versionobjectpublic AuthnRequest build()
Implementations that need to perform additional processing during the build step should override this method.
build in interface SAMLObjectBuilder<AuthnRequest>build in class AbstractRequestBuilder<AuthnRequest,BUILDER extends AbstractSAMLObjectBuilder<AuthnRequest>>public BUILDER forceAuthn(Boolean b)
ForceAuthn attribute to the AuthnRequest object.b - boolean flagpublic BUILDER isPassive(Boolean b)
IsPassive attribute to the AuthnRequest object.b - boolean flagpublic BUILDER protocolBinding(String binding)
ProtocolBinding attribute to the AuthnRequest object.binding - the binding URIpostProtocolBinding()public BUILDER postProtocolBinding()
SAMLConstants.SAML2_POST_BINDING_URI to the ProtocolBinding attribute of the
AuthnRequest object.
This is the default.
public BUILDER assertionConsumerServiceIndex(Integer index)
AssertionConsumerServiceIndex attribute to the AuthnRequest object.index - the indexpublic BUILDER assertionConsumerServiceURL(String url)
AssertionConsumerServiceURL attribute to the AuthnRequest object.url - the URLpublic BUILDER attributeConsumerServiceIndex(Integer index)
AttributeConsumerServiceIndex attribute to the AuthnRequest object.index - the indexpublic BUILDER providerName(String name)
ProviderName attribute to the AuthnRequest object.name - the provider namepublic BUILDER subject(Subject subject)
Subject element to the AuthnRequest object.subject - the subject (will be cloned before assignment)public BUILDER nameIDPolicy(NameIDPolicy nameIDPolicy)
NameIDPolicy element to the AuthnRequest object.nameIDPolicy - the nameID policy (will be cloned before assignment)NameIDPolicyBuilderpublic BUILDER conditions(Conditions conditions)
Conditions element to the AuthnRequest object.conditions - the request conditions (will be cloned before assignment)public BUILDER requestedAuthnContext(RequestedAuthnContext requestedAuthnContext)
RequestedAuthnContext element to the AuthnRequest object.requestedAuthnContext - the requested authentication context (will be cloned before assignment)RequestedAuthnContextBuilderpublic BUILDER scoping(Scoping scoping)
Scoping element to the AuthnRequest object.scoping - the scoping element to add (will be cloned before assignment)protected Class<AuthnRequest> getObjectType()
getObjectType in class AbstractSAMLObjectBuilder<AuthnRequest>Copyright © 2018 Litsec AB. All rights reserved.