public class HTTPRedirectDeflateEncoder extends BaseSAML2MessageEncoder
Constructor and Description |
---|
HTTPRedirectDeflateEncoder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
buildRedirectURL(SAMLMessageContext messagesContext,
String endpointURL,
String message)
Builds the URL to redirect the client to.
|
protected String |
deflateAndBase64Encode(SAMLObject message)
DEFLATE (RFC1951) compresses the given SAML message.
|
protected void |
doEncode(MessageContext messageContext)
Encodes the outbound message onto the outbound transport.
|
protected String |
generateSignature(Credential signingCredential,
String algorithmURI,
String queryString)
Generates the signature over the query string.
|
String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
protected String |
getSignatureAlgorithmURI(Credential credential,
SecurityConfiguration config)
Gets the signature algorithm URI to use with the given signing credential.
|
boolean |
providesMessageConfidentiality(MessageContext messageContext)
Indicates whether this encoder, given the current message context, provides end-to-end message confidentiality.
|
boolean |
providesMessageIntegrity(MessageContext messageContext)
Indicates whether this encoder, given the current message context, provides end-to-end message integrity.
|
protected void |
removeSignature(SAMLMessageContext messageContext)
Removes the signature from the protocol message.
|
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessage
encode, logEncodedMessage, marshallMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode
public String getBindingURI()
public boolean providesMessageConfidentiality(MessageContext messageContext) throws MessageEncodingException
messageContext
- the current message contextMessageEncodingException
- thrown if the encoder encounter an error while attempt to evaluate its ability
to provide message confidentiality.public boolean providesMessageIntegrity(MessageContext messageContext) throws MessageEncodingException
messageContext
- the current message contextMessageEncodingException
- thrown if the encoder encounter an error while attempt to evaluate its ability
to provide message integrity.protected void doEncode(MessageContext messageContext) throws MessageEncodingException
doEncode
in class BaseMessageEncoder
messageContext
- current message contextMessageEncodingException
- thrown if there is a problem encoding the messageprotected void removeSignature(SAMLMessageContext messageContext)
messageContext
- current message contextprotected String deflateAndBase64Encode(SAMLObject message) throws MessageEncodingException
message
- SAML messageMessageEncodingException
- thrown if there is a problem compressing the messageprotected String buildRedirectURL(SAMLMessageContext messagesContext, String endpointURL, String message) throws MessageEncodingException
messagesContext
- current message contextendpointURL
- endpoint URL to send encoded message tomessage
- Deflated and Base64 encoded messageMessageEncodingException
- thrown if the SAML message is neither a RequestAbstractType or Responseprotected String getSignatureAlgorithmURI(Credential credential, SecurityConfiguration config) throws MessageEncodingException
credential
- the credential that will be used to sign the messageconfig
- the SecurityConfiguration to use (may be null)MessageEncodingException
- thrown if the algorithm URI could not be derived from the supplied credentialprotected String generateSignature(Credential signingCredential, String algorithmURI, 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 signatureCopyright © 2013 JBoss by Red Hat. All Rights Reserved.