public class HTTPArtifactEncoder extends BaseSAML2MessageEncoder
Constructor and Description |
---|
HTTPArtifactEncoder(org.apache.velocity.app.VelocityEngine engine,
String template,
SAMLArtifactMap map)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractSAML2Artifact |
buildArtifact(SAMLMessageContext artifactContext)
Builds the SAML 2 artifact for the outgoing message.
|
protected void |
doEncode(org.opensaml.ws.message.MessageContext messageContext) |
String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
protected void |
getEncode(SAMLMessageContext artifactContext,
org.opensaml.ws.transport.http.HTTPOutTransport outTransport)
Performs HTTP GET based encoding.
|
boolean |
isPostEncoding()
Gets whether the encoder will encode the artifact via POST encoding.
|
protected void |
postEncode(SAMLMessageContext artifactContext,
org.opensaml.ws.transport.http.HTTPOutTransport outTransport)
Performs HTTP POST based encoding.
|
boolean |
providesMessageConfidentiality(org.opensaml.ws.message.MessageContext messageContext) |
boolean |
providesMessageIntegrity(org.opensaml.ws.message.MessageContext messageContext) |
void |
setPostEncoding(boolean post)
Sets whether the encoder will encode the artifact via POST encoding.
|
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessage
encode, logEncodedMessage, marshallMessage
public HTTPArtifactEncoder(org.apache.velocity.app.VelocityEngine engine, String template, SAMLArtifactMap map)
engine
- velocity engine used to construct the POST formtemplate
- ID of velocity template used to construct the POST formmap
- artifact map used to store artifact/message bindingspublic String getBindingURI()
public boolean isPostEncoding()
public void setPostEncoding(boolean post)
post
- true if POST encoding will be used, false if GET encoding will be usedpublic 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 artifactContext, org.opensaml.ws.transport.http.HTTPOutTransport outTransport) throws org.opensaml.ws.message.encoder.MessageEncodingException
artifactContext
- current request contextoutTransport
- outbound HTTP transportorg.opensaml.ws.message.encoder.MessageEncodingException
- thrown if there is a problem POST encoding the artifactprotected void getEncode(SAMLMessageContext artifactContext, org.opensaml.ws.transport.http.HTTPOutTransport outTransport) throws org.opensaml.ws.message.encoder.MessageEncodingException
artifactContext
- current request contextoutTransport
- outbound HTTP transportorg.opensaml.ws.message.encoder.MessageEncodingException
- thrown if there is a problem GET encoding the artifactprotected AbstractSAML2Artifact buildArtifact(SAMLMessageContext artifactContext) throws org.opensaml.ws.message.encoder.MessageEncodingException
artifactContext
- current request contextorg.opensaml.ws.message.encoder.MessageEncodingException
- thrown if the artifact can not be createdCopyright © 1999-2013. All Rights Reserved.