Package org.keycloak.saml
Class SAML2ErrorResponseBuilder
- java.lang.Object
-
- org.keycloak.saml.SAML2ErrorResponseBuilder
-
- All Implemented Interfaces:
SamlProtocolExtensionsAwareBuilder<SAML2ErrorResponseBuilder>
public class SAML2ErrorResponseBuilder extends Object implements SamlProtocolExtensionsAwareBuilder<SAML2ErrorResponseBuilder>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
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
protected String
status
-
Constructor Summary
Constructors Constructor Description SAML2ErrorResponseBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SAML2ErrorResponseBuilder
addExtension(SamlProtocolExtensionsAwareBuilder.NodeGenerator extension)
Adds a given node subtree as a SAML protocol extension into the SAML protocol message.Document
buildDocument()
SAML2ErrorResponseBuilder
destination(String destination)
SAML2ErrorResponseBuilder
issuer(String issuer)
SAML2ErrorResponseBuilder
issuer(NameIDType issuer)
SAML2ErrorResponseBuilder
status(String status)
-
-
-
Field Detail
-
status
protected String status
-
destination
protected String destination
-
issuer
protected NameIDType issuer
-
extensions
protected final List<SamlProtocolExtensionsAwareBuilder.NodeGenerator> extensions
-
-
Method Detail
-
status
public SAML2ErrorResponseBuilder status(String status)
-
destination
public SAML2ErrorResponseBuilder destination(String destination)
-
issuer
public SAML2ErrorResponseBuilder issuer(NameIDType issuer)
-
issuer
public SAML2ErrorResponseBuilder issuer(String issuer)
-
addExtension
public SAML2ErrorResponseBuilder 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<SAML2ErrorResponseBuilder>
- Returns:
-
buildDocument
public Document buildDocument() throws ProcessingException
- Throws:
ProcessingException
-
-