public class HTTPPostEncoder extends BaseSAML2MessageEncoder
Constructor and Description |
---|
HTTPPostEncoder(org.apache.velocity.app.VelocityEngine engine,
String templateId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doEncode(org.opensaml.ws.message.MessageContext messageContext) |
String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
protected void |
populateVelocityContext(org.apache.velocity.VelocityContext velocityContext,
SAMLMessageContext messageContext,
String endpointURL)
Populate the Velocity context instance which will be used to render the POST body.
|
protected void |
postEncode(SAMLMessageContext messageContext,
String endpointURL)
Base64 and POST encodes the outbound message and writes it to the outbound transport.
|
boolean |
providesMessageConfidentiality(org.opensaml.ws.message.MessageContext messageContext) |
boolean |
providesMessageIntegrity(org.opensaml.ws.message.MessageContext messageContext) |
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessage
encode, logEncodedMessage, marshallMessage
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(org.opensaml.ws.message.MessageContext messageContext) throws org.opensaml.ws.message.encoder.MessageEncodingException
org.opensaml.ws.message.encoder.MessageEncodingException
public boolean providesMessageIntegrity(org.opensaml.ws.message.MessageContext messageContext) throws org.opensaml.ws.message.encoder.MessageEncodingException
org.opensaml.ws.message.encoder.MessageEncodingException
protected void doEncode(org.opensaml.ws.message.MessageContext messageContext) throws org.opensaml.ws.message.encoder.MessageEncodingException
doEncode
in class org.opensaml.ws.message.encoder.BaseMessageEncoder
org.opensaml.ws.message.encoder.MessageEncodingException
protected void postEncode(SAMLMessageContext messageContext, String endpointURL) throws org.opensaml.ws.message.encoder.MessageEncodingException
messageContext
- current message contextendpointURL
- endpoint URL to which to encode messageorg.opensaml.ws.message.encoder.MessageEncodingException
- thrown if there is a problem encoding the messageprotected void populateVelocityContext(org.apache.velocity.VelocityContext velocityContext, SAMLMessageContext messageContext, String endpointURL) throws org.opensaml.ws.message.encoder.MessageEncodingException
velocityContext
- the Velocity context instance to populate with datamessageContext
- the SAML message context source of dataendpointURL
- endpoint URL to which to encode messageorg.opensaml.ws.message.encoder.MessageEncodingException
- thrown if there is a problem encoding the messageCopyright © 1999-2013. All Rights Reserved.