|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.ws.message.encoder.BaseMessageEncoder
org.opensaml.saml2.binding.encoding.BaseSAML2MessageEncoder
org.opensaml.saml2.binding.encoding.HTTPArtifactEncoder
public class HTTPArtifactEncoder
SAML 2 Artifact Binding encoder, support both HTTP GET and POST.
| Constructor Summary | |
|---|---|
HTTPArtifactEncoder(org.apache.velocity.app.VelocityEngine engine,
java.lang.String template,
SAMLArtifactMap map)
Constructor. |
|
| Method Summary | |
|---|---|
protected AbstractSAML2Artifact |
buildArtifact(SAMLMessageContext artifactContext)
Builds the SAML 2 artifact for the outgoing message. |
protected void |
doEncode(org.opensaml.ws.message.MessageContext messageContext)
|
java.lang.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. |
| Methods inherited from class org.opensaml.saml2.binding.encoding.BaseSAML2MessageEncoder |
|---|
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, 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 |
| Constructor Detail |
|---|
public HTTPArtifactEncoder(org.apache.velocity.app.VelocityEngine engine,
java.lang.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 bindings| Method Detail |
|---|
public java.lang.String getBindingURI()
public boolean isPostEncoding()
public void setPostEncoding(boolean post)
post - true if POST encoding will be used, false if GET encoding will be used
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.BaseMessageEncoderorg.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 transport
org.opensaml.ws.message.encoder.MessageEncodingException - thrown if there is a problem POST encoding the artifact
protected void getEncode(SAMLMessageContext artifactContext,
org.opensaml.ws.transport.http.HTTPOutTransport outTransport)
throws org.opensaml.ws.message.encoder.MessageEncodingException
artifactContext - current request contextoutTransport - outbound HTTP transport
org.opensaml.ws.message.encoder.MessageEncodingException - thrown if there is a problem GET encoding the artifact
protected AbstractSAML2Artifact buildArtifact(SAMLMessageContext artifactContext)
throws org.opensaml.ws.message.encoder.MessageEncodingException
artifactContext - current request context
org.opensaml.ws.message.encoder.MessageEncodingException - thrown if the artifact can not be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||