|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.ws.message.encoder.BaseMessageEncoder org.opensaml.saml1.binding.encoding.BaseSAML1MessageEncoder org.opensaml.saml1.binding.encoding.HTTPPostEncoder
public class HTTPPostEncoder
SAML 1.X HTTP POST message encoder.
Field Summary | |
---|---|
private org.slf4j.Logger |
log
Class logger. |
private org.apache.velocity.app.VelocityEngine |
velocityEngine
Velocity engine used to evaluate the template when performing POST encoding. |
private String |
velocityTemplateId
ID of the velocity template used when performing POST encoding. |
Constructor Summary | |
---|---|
HTTPPostEncoder(org.apache.velocity.app.VelocityEngine engine,
String templateId)
Constructor. |
Method Summary | |
---|---|
protected void |
doEncode(MessageContext messageContext)
|
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)
|
boolean |
providesMessageIntegrity(MessageContext messageContext)
|
Methods inherited from class org.opensaml.saml1.binding.encoding.BaseSAML1MessageEncoder |
---|
getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, signMessage |
Methods inherited from class org.opensaml.ws.message.encoder.BaseMessageEncoder |
---|
encode, logEncodedMessage, marshallMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.ws.message.encoder.MessageEncoder |
---|
encode |
Field Detail |
---|
private final org.slf4j.Logger log
private org.apache.velocity.app.VelocityEngine velocityEngine
private String velocityTemplateId
Constructor Detail |
---|
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 bodyMethod Detail |
---|
public String getBindingURI()
public boolean providesMessageConfidentiality(MessageContext messageContext) throws MessageEncodingException
MessageEncodingException
public boolean providesMessageIntegrity(MessageContext messageContext) throws MessageEncodingException
MessageEncodingException
protected void doEncode(MessageContext messageContext) throws MessageEncodingException
doEncode
in class BaseMessageEncoder
MessageEncodingException
protected void postEncode(SAMLMessageContext messageContext, String endpointURL) throws MessageEncodingException
messageContext
- current message contextendpointURL
- endpoint URL to encode message to
MessageEncodingException
- thrown if there is a problem encoding the message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |