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(MessageContext messageContext)
Encodes the outbound message onto the outbound transport.
|
String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
protected void |
getEncode(SAMLMessageContext artifactContext,
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,
HTTPOutTransport outTransport)
Performs HTTP POST based encoding.
|
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.
|
void |
setPostEncoding(boolean post)
Sets whether the encoder will encode the artifact via POST encoding.
|
checkRelayState, getAllowedURLSchemes, getEndpointURL, setAllowedURLSchemes, setResponseDestination, signMessage
encode, logEncodedMessage, marshallMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode
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(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 artifactContext, HTTPOutTransport outTransport) throws MessageEncodingException
artifactContext
- current request contextoutTransport
- outbound HTTP transportMessageEncodingException
- thrown if there is a problem POST encoding the artifactprotected void getEncode(SAMLMessageContext artifactContext, HTTPOutTransport outTransport) throws MessageEncodingException
artifactContext
- current request contextoutTransport
- outbound HTTP transportMessageEncodingException
- thrown if there is a problem GET encoding the artifactprotected AbstractSAML2Artifact buildArtifact(SAMLMessageContext artifactContext) throws MessageEncodingException
artifactContext
- current request contextMessageEncodingException
- thrown if the artifact can not be createdCopyright © 2018 JBoss by Red Hat. All rights reserved.