public class HTTPRedirectDeflateEncoder extends BaseSAML2MessageEncoder
| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
HTTPRedirectDeflateEncoder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildRedirectURL(MessageContext<SAMLObject> messageContext,
java.lang.String endpoint,
java.lang.String message)
Builds the URL to redirect the client to.
|
protected java.lang.String |
deflateAndBase64Encode(SAMLObject message)
DEFLATE (RFC1951) compresses the given SAML message.
|
protected void |
doEncode()
Performs the encoding logic.
|
protected java.lang.String |
generateSignature(Credential signingCredential,
java.lang.String algorithmURI,
java.lang.String queryString)
Generates the signature over the query string.
|
java.lang.String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
protected java.lang.String |
getSignatureAlgorithmURI(SignatureSigningParameters signingParameters)
Gets the signature algorithm URI to use.
|
protected void |
removeSignature(SAMLObject message)
Removes the signature from the protocol message.
|
getEndpointURLencode, getMessageToLog, logEncodedMessage, marshallMessagedoDestroy, doInitialize, getHttpServletResponse, setHttpServletResponsegetMessageContext, prepareContext, setMessageContextdestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencode, prepareContext, setMessageContextpublic java.lang.String getBindingURI()
protected void doEncode()
throws MessageEncodingException
doEncode in class AbstractMessageEncoder<SAMLObject>MessageEncodingException - thrown if there is a problem encoding the messageprotected void removeSignature(SAMLObject message)
message - current message contextprotected java.lang.String deflateAndBase64Encode(SAMLObject message) throws MessageEncodingException
message - SAML messageMessageEncodingException - thrown if there is a problem compressing the messageprotected java.lang.String buildRedirectURL(MessageContext<SAMLObject> messageContext, java.lang.String endpoint, java.lang.String message) throws MessageEncodingException
messageContext - current message contextendpoint - endpoint URL to send encoded message tomessage - Deflated and Base64 encoded messageMessageEncodingException - thrown if the SAML message is neither a RequestAbstractType or Responseprotected java.lang.String getSignatureAlgorithmURI(SignatureSigningParameters signingParameters) throws MessageEncodingException
signingParameters - the signing parameters to useMessageEncodingException - thrown if the algorithm URI is not supplied explicitly and
could not be derived from the supplied credentialprotected java.lang.String generateSignature(Credential signingCredential, java.lang.String algorithmURI, java.lang.String queryString) throws MessageEncodingException
signingCredential - credential that will be used to sign query stringalgorithmURI - algorithm URI of the signing credentialqueryString - query string to be signedMessageEncodingException - there is an error computing the signature