public class HTTPArtifactEncoder extends BaseSAML2MessageEncoder
| コンストラクタと説明 |
|---|
HTTPArtifactEncoder(org.apache.velocity.app.VelocityEngine engine,
String template,
SAMLArtifactMap map)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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, signMessageencode, logEncodedMessage, marshallMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencodepublic 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 クラス内 BaseMessageEncodermessageContext - 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 © 2012. All Rights Reserved.