Package org.keycloak.saml
Class BaseSAML2BindingBuilder<T extends BaseSAML2BindingBuilder>
java.lang.Object
org.keycloak.saml.BaseSAML2BindingBuilder<T>
- Direct Known Subclasses:
JaxrsSAML2BindingBuilder
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected boolean
protected String
protected int
protected PublicKey
protected String
protected String
protected String
protected static final org.jboss.logging.Logger
protected String
protected boolean
protected boolean
protected SignatureAlgorithm
protected X509Certificate
protected String
protected KeyPair
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbase64Encoded
(Document document) buildHtmlForm
(String actionUrl, Map<String, String> inputTypes) buildHtmlPostResponse
(Document responseDoc, String actionUrl, boolean asRequest) canonicalizationMethod
(String method) void
encryptDocument
(Document samlDocument) encryptionKeySize
(int size) generateRedirectUri
(String samlParameterName, String redirectUri, Document document) getSAMLNSPrefix
(Document samlResponseDocument) static String
getSAMLResponse
(Document responseDoc) keyEncryptionAlgorithm
(String keyEncryptionAlgorithm) keyEncryptionDigestMethod
(String keyEncryptionDigestMethod) keyEncryptionMgfAlgorithm
(String keyEncryptionMgfAlgorithm) postBinding
(Document document) redirectBinding
(Document document) relayState
(String relayState) void
signAssertion
(Document samlDocument) void
signDocument
(Document samlDocument) signWith
(String signingKeyName, KeyPair keyPair, X509Certificate cert) signWith
(String signingKeyName, PrivateKey privateKey, PublicKey publicKey) signWith
(String signingKeyName, PrivateKey privateKey, PublicKey publicKey, X509Certificate cert) soapBinding
(Document document)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
signingKeyName
-
signingKeyPair
-
signingCertificate
-
sign
protected boolean sign -
signAssertions
protected boolean signAssertions -
signatureAlgorithm
-
relayState
-
encryptionKeySize
protected int encryptionKeySize -
encryptionPublicKey
-
encryptionAlgorithm
-
encrypt
protected boolean encrypt -
canonicalizationMethodType
-
keyEncryptionAlgorithm
-
keyEncryptionDigestMethod
-
keyEncryptionMgfAlgorithm
-
-
Constructor Details
-
BaseSAML2BindingBuilder
public BaseSAML2BindingBuilder()
-
-
Method Details
-
canonicalizationMethod
-
signDocument
-
signAssertions
-
signWith
-
signWith
-
signWith
-
signWith
public T signWith(String signingKeyName, PrivateKey privateKey, PublicKey publicKey, X509Certificate cert) -
signatureAlgorithm
-
encrypt
-
encryptionAlgorithm
-
encryptionKeySize
-
keyEncryptionAlgorithm
-
keyEncryptionDigestMethod
-
keyEncryptionMgfAlgorithm
-
relayState
-
redirectBinding
public BaseSAML2BindingBuilder.BaseRedirectBindingBuilder redirectBinding(Document document) throws ProcessingException - Throws:
ProcessingException
-
postBinding
public BaseSAML2BindingBuilder<T>.BasePostBindingBuilder postBinding(Document document) throws ProcessingException - Throws:
ProcessingException
-
soapBinding
public BaseSAML2BindingBuilder.BaseSoapBindingBuilder soapBinding(Document document) throws ProcessingException - Throws:
ProcessingException
-
getSAMLNSPrefix
-
encryptDocument
- Throws:
ProcessingException
-
signDocument
- Throws:
ProcessingException
-
signAssertion
- Throws:
ProcessingException
-
buildHtmlPostResponse
public String buildHtmlPostResponse(Document responseDoc, String actionUrl, boolean asRequest) throws ProcessingException, ConfigurationException, IOException -
getSAMLResponse
public static String getSAMLResponse(Document responseDoc) throws ProcessingException, ConfigurationException, IOException -
buildHtml
-
buildHtmlForm
-
base64Encoded
public String base64Encoded(Document document) throws ConfigurationException, ProcessingException, IOException -
generateRedirectUri
public URI generateRedirectUri(String samlParameterName, String redirectUri, Document document) throws ConfigurationException, ProcessingException, IOException
-