public class BaseSAML2BindingBuilder<T extends BaseSAML2BindingBuilder> extends Object
Modifier and Type | Class and Description |
---|---|
class |
BaseSAML2BindingBuilder.BasePostBindingBuilder |
static class |
BaseSAML2BindingBuilder.BaseRedirectBindingBuilder |
Modifier and Type | Field and Description |
---|---|
protected String |
canonicalizationMethodType |
protected boolean |
encrypt |
protected String |
encryptionAlgorithm |
protected int |
encryptionKeySize |
protected PublicKey |
encryptionPublicKey |
protected static org.jboss.logging.Logger |
logger |
protected String |
relayState |
protected boolean |
sign |
protected boolean |
signAssertions |
protected SignatureAlgorithm |
signatureAlgorithm |
protected X509Certificate |
signingCertificate |
protected String |
signingKeyName |
protected KeyPair |
signingKeyPair |
Constructor and Description |
---|
BaseSAML2BindingBuilder() |
protected static final org.jboss.logging.Logger logger
protected String signingKeyName
protected KeyPair signingKeyPair
protected X509Certificate signingCertificate
protected boolean sign
protected boolean signAssertions
protected SignatureAlgorithm signatureAlgorithm
protected String relayState
protected int encryptionKeySize
protected PublicKey encryptionPublicKey
protected String encryptionAlgorithm
protected boolean encrypt
protected String canonicalizationMethodType
public T signDocument()
public T signAssertions()
public T signWith(String signingKeyName, PrivateKey privateKey, PublicKey publicKey)
public T signWith(String signingKeyName, KeyPair keyPair, X509Certificate cert)
public T signWith(String signingKeyName, PrivateKey privateKey, PublicKey publicKey, X509Certificate cert)
public T signatureAlgorithm(SignatureAlgorithm alg)
public T encryptionKeySize(int size)
public BaseSAML2BindingBuilder.BaseRedirectBindingBuilder redirectBinding(Document document) throws ProcessingException
ProcessingException
public BaseSAML2BindingBuilder.BasePostBindingBuilder postBinding(Document document) throws ProcessingException
ProcessingException
public void encryptDocument(Document samlDocument) throws ProcessingException
ProcessingException
public void signDocument(Document samlDocument) throws ProcessingException
ProcessingException
public void signAssertion(Document samlDocument) throws ProcessingException
ProcessingException
public String buildHtmlPostResponse(Document responseDoc, String actionUrl, boolean asRequest) throws ProcessingException, ConfigurationException, IOException
public static String getSAMLResponse(Document responseDoc) throws ProcessingException, ConfigurationException, IOException
public String base64Encoded(Document document) throws ConfigurationException, ProcessingException, IOException
public URI generateRedirectUri(String samlParameterName, String redirectUri, Document document) throws ConfigurationException, ProcessingException, IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.