public class SAML2BindingBuilder<T extends SAML2BindingBuilder> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
SAML2BindingBuilder.PostBindingBuilder |
class |
SAML2BindingBuilder.RedirectBindingBuilder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
destination |
protected boolean |
encrypt |
protected String |
encryptionAlgorithm |
protected int |
encryptionKeySize |
protected PublicKey |
encryptionPublicKey |
protected String |
relayState |
protected String |
responseIssuer |
protected boolean |
sign |
protected boolean |
signAssertions |
protected SignatureAlgorithm |
signatureAlgorithm |
protected X509Certificate |
signingCertificate |
protected KeyPair |
signingKeyPair |
| Constructor and Description |
|---|
SAML2BindingBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
base64Encoded(Document document) |
protected String |
buildHtml(String samlResponse) |
protected String |
buildHtmlPostResponse(Document responseDoc) |
protected javax.ws.rs.core.Response |
buildResponse(Document responseDoc) |
T |
destination(String destination) |
T |
encrypt(PublicKey publicKey) |
protected void |
encryptDocument(Document samlDocument) |
T |
encryptionAlgorithm(String alg) |
T |
encryptionKeySize(int size) |
protected URI |
generateRedirectUri(String samlParameterName,
Document document) |
T |
relayState(String relayState) |
T |
responseIssuer(String issuer) |
protected void |
signAssertion(Document samlDocument) |
T |
signAssertions() |
T |
signatureAlgorithm(SignatureAlgorithm alg) |
T |
signDocument() |
protected void |
signDocument(Document samlDocument) |
T |
signWith(KeyPair keyPair) |
T |
signWith(KeyPair keyPair,
X509Certificate cert) |
T |
signWith(PrivateKey privateKey,
PublicKey publicKey) |
T |
signWith(PrivateKey privateKey,
PublicKey publicKey,
X509Certificate cert) |
protected KeyPair signingKeyPair
protected X509Certificate signingCertificate
protected boolean sign
protected boolean signAssertions
protected SignatureAlgorithm signatureAlgorithm
protected String relayState
protected String destination
protected String responseIssuer
protected int encryptionKeySize
protected PublicKey encryptionPublicKey
protected String encryptionAlgorithm
protected boolean encrypt
public T signDocument()
public T signAssertions()
public T signWith(PrivateKey privateKey, PublicKey publicKey)
public T signWith(KeyPair keyPair, X509Certificate cert)
public T signWith(PrivateKey privateKey, PublicKey publicKey, X509Certificate cert)
public T signatureAlgorithm(SignatureAlgorithm alg)
public T encryptionKeySize(int size)
protected void encryptDocument(Document samlDocument) throws org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ProcessingExceptionprotected void signDocument(Document samlDocument) throws org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ProcessingExceptionprotected void signAssertion(Document samlDocument) throws org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ProcessingExceptionprotected javax.ws.rs.core.Response buildResponse(Document responseDoc) throws org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ConfigurationException, IOException
org.picketlink.common.exceptions.ProcessingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionIOExceptionprotected String buildHtmlPostResponse(Document responseDoc) throws org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ConfigurationException, IOException
org.picketlink.common.exceptions.ProcessingExceptionorg.picketlink.common.exceptions.ConfigurationExceptionIOExceptionprotected String base64Encoded(Document document) throws org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ProcessingException, IOException
org.picketlink.common.exceptions.ConfigurationExceptionorg.picketlink.common.exceptions.ProcessingExceptionIOExceptionprotected URI generateRedirectUri(String samlParameterName, Document document) throws org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ProcessingException, IOException
org.picketlink.common.exceptions.ConfigurationExceptionorg.picketlink.common.exceptions.ProcessingExceptionIOExceptionCopyright © 2014. All Rights Reserved.