Package org.keycloak.saml
Class SAML2LoginResponseBuilder
java.lang.Object
org.keycloak.saml.SAML2LoginResponseBuilder
- All Implemented Interfaces:
SamlProtocolExtensionsAwareBuilder<SAML2LoginResponseBuilder>
public class SAML2LoginResponseBuilder
extends Object
implements SamlProtocolExtensionsAwareBuilder<SAML2LoginResponseBuilder>
Handles for dealing with SAML2 Authentication
Configuration Options:- Author:
- bburke@redhat.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.saml.SamlProtocolExtensionsAwareBuilder
SamlProtocolExtensionsAwareBuilder.NodeGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected String
protected String
protected boolean
protected final List<SamlProtocolExtensionsAwareBuilder.NodeGenerator>
protected boolean
protected NameIDType
protected static final PicketLinkLogger
protected boolean
protected String
protected String
protected String
protected String
protected int
protected String
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a given node subtree as a SAML protocol extension into the SAML protocol message.assertionExpiration
(int assertionExpiration) Length of time in seconds the assertion is valid for See SAML core specification 2.5.1.2 NotOnOrAfterauthMethod
(String authMethod) buildDocument
(ResponseType responseType) destination
(String destination) disableAuthnStatement
(boolean disableAuthnStatement) includeOneTimeUseCondition
(boolean includeOneTimeUseCondition) issuer
(NameIDType issuer) multiValuedRoles
(boolean multiValuedRoles) nameIdentifier
(String nameIdFormat, String nameId) requestIssuer
(String requestIssuer) sessionExpiration
(int sessionExpiration) Length of time in seconds the idp session will be valid See SAML core specification 2.7.2 SessionNotOnOrAftersessionIndex
(String sessionIndex) subjectExpiration
(int subjectExpiration) Length of time in seconds the subject can be confirmed See SAML core specification 2.4.1.2 NotOnOrAfter
-
Field Details
-
logger
-
destination
-
issuer
-
subjectExpiration
protected int subjectExpiration -
assertionExpiration
protected int assertionExpiration -
sessionExpiration
protected int sessionExpiration -
nameId
-
nameIdFormat
-
multiValuedRoles
protected boolean multiValuedRoles -
disableAuthnStatement
protected boolean disableAuthnStatement -
requestID
-
authMethod
-
requestIssuer
-
sessionIndex
-
extensions
-
includeOneTimeUseCondition
protected boolean includeOneTimeUseCondition
-
-
Constructor Details
-
SAML2LoginResponseBuilder
public SAML2LoginResponseBuilder()
-
-
Method Details
-
sessionIndex
-
destination
-
issuer
-
issuer
-
subjectExpiration
Length of time in seconds the subject can be confirmed See SAML core specification 2.4.1.2 NotOnOrAfter- Parameters:
subjectExpiration
- Number of seconds the subject should be valid- Returns:
-
sessionExpiration
Length of time in seconds the idp session will be valid See SAML core specification 2.7.2 SessionNotOnOrAfter- Parameters:
sessionExpiration
- Number of seconds the session should be valid- Returns:
-
assertionExpiration
Length of time in seconds the assertion is valid for See SAML core specification 2.5.1.2 NotOnOrAfter- Parameters:
assertionExpiration
- Number of seconds the assertion should be valid- Returns:
-
requestID
-
requestIssuer
-
authMethod
-
nameIdentifier
-
multiValuedRoles
-
disableAuthnStatement
-
includeOneTimeUseCondition
-
addExtension
public SAML2LoginResponseBuilder 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<SAML2LoginResponseBuilder>
- Returns:
-
buildDocument
public Document buildDocument(ResponseType responseType) throws ConfigurationException, ProcessingException -
buildModel
-