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(org.opensaml.ws.message.MessageContext messageContext) |
protected String |
generateSignature(org.opensaml.xml.security.credential.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(org.opensaml.xml.security.credential.Credential credential,
org.opensaml.xml.security.SecurityConfiguration config)
Gets the signature algorithm URI to use with the given signing credential.
|
boolean |
providesMessageConfidentiality(org.opensaml.ws.message.MessageContext messageContext) |
boolean |
providesMessageIntegrity(org.opensaml.ws.message.MessageContext messageContext) |
protected void |
removeSignature(SAMLMessageContext messageContext)
Removes the signature from the protocol message.
|
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessageencode, logEncodedMessage, marshallMessagepublic String getBindingURI()
public boolean providesMessageConfidentiality(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
org.opensaml.ws.message.encoder.MessageEncodingExceptionpublic boolean providesMessageIntegrity(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
org.opensaml.ws.message.encoder.MessageEncodingExceptionprotected void doEncode(org.opensaml.ws.message.MessageContext messageContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
doEncode in class org.opensaml.ws.message.encoder.BaseMessageEncoderorg.opensaml.ws.message.encoder.MessageEncodingExceptionprotected void removeSignature(SAMLMessageContext messageContext)
messageContext - current message contextprotected String deflateAndBase64Encode(SAMLObject message) throws org.opensaml.ws.message.encoder.MessageEncodingException
message - SAML messageorg.opensaml.ws.message.encoder.MessageEncodingException - thrown if there is a problem compressing the messageprotected String buildRedirectURL(SAMLMessageContext messagesContext, String endpointURL, String message) throws org.opensaml.ws.message.encoder.MessageEncodingException
messagesContext - current message contextendpointURL - endpoint URL to send encoded message tomessage - Deflated and Base64 encoded messageorg.opensaml.ws.message.encoder.MessageEncodingException - thrown if the SAML message is neither a RequestAbstractType or Responseprotected String getSignatureAlgorithmURI(org.opensaml.xml.security.credential.Credential credential, org.opensaml.xml.security.SecurityConfiguration config) throws org.opensaml.ws.message.encoder.MessageEncodingException
credential - the credential that will be used to sign the messageconfig - the SecurityConfiguration to use (may be null)org.opensaml.ws.message.encoder.MessageEncodingException - thrown if the algorithm URI could not be derived from the supplied credentialprotected String generateSignature(org.opensaml.xml.security.credential.Credential signingCredential, String algorithmURI, String queryString) throws org.opensaml.ws.message.encoder.MessageEncodingException
signingCredential - credential that will be used to sign query stringalgorithmURI - algorithm URI of the signing credentialqueryString - query string to be signedorg.opensaml.ws.message.encoder.MessageEncodingException - there is an error computing the signatureCopyright © 1999–2015. All rights reserved.