public class HTTPPostEncoder extends BaseSAML1MessageEncoder
Constructor and Description |
---|
HTTPPostEncoder(org.apache.velocity.app.VelocityEngine engine,
String templateId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doEncode(MessageContext messageContext)
Encodes the outbound message onto the outbound transport.
|
String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
protected void |
postEncode(SAMLMessageContext messageContext,
String endpointURL)
Base64 and POST encodes the outbound message and writes it to the outbound transport.
|
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.
|
getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, signMessage
encode, logEncodedMessage, marshallMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode
public HTTPPostEncoder(org.apache.velocity.app.VelocityEngine engine, String templateId)
engine
- velocity engine instance used to create POST bodytemplateId
- ID of the template used to create POST bodypublic 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 postEncode(SAMLMessageContext messageContext, String endpointURL) throws MessageEncodingException
messageContext
- current message contextendpointURL
- endpoint URL to encode message toMessageEncodingException
- thrown if there is a problem encoding the messageCopyright © 2018 JBoss by Red Hat. All rights reserved.