public class SAML2BindingBuilder2<T extends SAML2BindingBuilder2> extends Object
Modifier and Type | Class and Description |
---|---|
class |
SAML2BindingBuilder2.PostBindingBuilder |
class |
SAML2BindingBuilder2.RedirectBindingBuilder |
Modifier and Type | Field and Description |
---|---|
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 KeyPair |
signingKeyPair |
Constructor and Description |
---|
SAML2BindingBuilder2() |
protected static final org.jboss.logging.Logger logger
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
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.ProcessingException
protected void signDocument(Document samlDocument) throws org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ProcessingException
protected void signAssertion(Document samlDocument) throws org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ProcessingException
protected javax.ws.rs.core.Response buildResponse(Document responseDoc, String actionUrl, boolean asRequest) throws org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ConfigurationException, IOException
org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ConfigurationException
IOException
protected String buildHtmlPostResponse(Document responseDoc, String actionUrl, boolean asRequest) throws org.picketlink.common.exceptions.ProcessingException, org.picketlink.common.exceptions.ConfigurationException, IOException
org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ConfigurationException
IOException
protected String base64Encoded(Document document) throws org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ProcessingException, IOException
org.picketlink.common.exceptions.ConfigurationException
org.picketlink.common.exceptions.ProcessingException
IOException
protected URI generateRedirectUri(String samlParameterName, String redirectUri, Document document) throws org.picketlink.common.exceptions.ConfigurationException, org.picketlink.common.exceptions.ProcessingException, IOException
org.picketlink.common.exceptions.ConfigurationException
org.picketlink.common.exceptions.ProcessingException
IOException
public SAML2BindingBuilder2.RedirectBindingBuilder redirectBinding(Document document) throws org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ProcessingException
public SAML2BindingBuilder2.PostBindingBuilder postBinding(Document document) throws org.picketlink.common.exceptions.ProcessingException
org.picketlink.common.exceptions.ProcessingException
Copyright © 2015. All rights reserved.