Package org.keycloak.saml
Class SAML2AuthnRequestBuilder
- java.lang.Object
-
- org.keycloak.saml.SAML2AuthnRequestBuilder
-
- All Implemented Interfaces:
SamlProtocolExtensionsAwareBuilder<SAML2AuthnRequestBuilder>
public class SAML2AuthnRequestBuilder extends Object implements SamlProtocolExtensionsAwareBuilder<SAML2AuthnRequestBuilder>
- Author:
- pedroigor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.saml.SamlProtocolExtensionsAwareBuilder
SamlProtocolExtensionsAwareBuilder.NodeGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected String
destination
protected List<SamlProtocolExtensionsAwareBuilder.NodeGenerator>
extensions
protected NameIDType
issuer
-
Constructor Summary
Constructors Constructor Description SAML2AuthnRequestBuilder()
-
Method Summary
-
-
-
Field Detail
-
destination
protected String destination
-
issuer
protected NameIDType issuer
-
extensions
protected final List<SamlProtocolExtensionsAwareBuilder.NodeGenerator> extensions
-
-
Method Detail
-
destination
public SAML2AuthnRequestBuilder destination(String destination)
-
issuer
public SAML2AuthnRequestBuilder issuer(NameIDType issuer)
-
issuer
public SAML2AuthnRequestBuilder issuer(String issuer)
-
addExtension
public SAML2AuthnRequestBuilder addExtension(SamlProtocolExtensionsAwareBuilder.NodeGenerator extension)
Description copied from interface:SamlProtocolExtensionsAwareBuilder
Adds a given node subtree as a SAML protocol extension into the SAML protocol message.- Specified by:
addExtension
in interfaceSamlProtocolExtensionsAwareBuilder<SAML2AuthnRequestBuilder>
- Returns:
-
assertionConsumerUrl
public SAML2AuthnRequestBuilder assertionConsumerUrl(String assertionConsumerUrl)
-
assertionConsumerUrl
public SAML2AuthnRequestBuilder assertionConsumerUrl(URI assertionConsumerUrl)
-
attributeConsumingServiceIndex
public SAML2AuthnRequestBuilder attributeConsumingServiceIndex(Integer attributeConsumingServiceIndex)
-
forceAuthn
public SAML2AuthnRequestBuilder forceAuthn(boolean forceAuthn)
-
isPassive
public SAML2AuthnRequestBuilder isPassive(boolean isPassive)
-
nameIdPolicy
public SAML2AuthnRequestBuilder nameIdPolicy(SAML2NameIDPolicyBuilder nameIDPolicyBuilder)
-
protocolBinding
public SAML2AuthnRequestBuilder protocolBinding(String protocolBinding)
-
subject
public SAML2AuthnRequestBuilder subject(String subject)
-
requestedAuthnContext
public SAML2AuthnRequestBuilder requestedAuthnContext(SAML2RequestedAuthnContextBuilder requestedAuthnContextBuilder)
-
toDocument
public Document toDocument()
-
createAuthnRequest
public AuthnRequestType createAuthnRequest()
-
-