public class HTTPArtifactEncoder extends BaseSAML1MessageEncoder
| Modifier and Type | Field and Description |
|---|---|
private SAMLArtifactMap |
artifactMap
SAML artifact map used to store created artifacts for later retrival.
|
private byte[] |
defaultArtifactType
Default artifact type to use when encoding messages.
|
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
HTTPArtifactEncoder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDestroy() |
protected void |
doEncode()
Performs the encoding logic.
|
protected void |
doInitialize() |
SAMLArtifactMap |
getArtifactMap()
Get the SAML artifact map to use.
|
java.lang.String |
getBindingURI()
Gets the SAML binding URI supported by this encoder.
|
private java.lang.String |
getInboundMessageIssuer(MessageContext<SAMLObject> messageContext)
Get the requester.
|
private java.lang.String |
getOutboundMessageIssuer(MessageContext<SAMLObject> messageContext)
Get the outbound message issuer.
|
private byte[] |
getSAMLArtifactType(MessageContext<SAMLObject> messageContext)
Get the SAML artifact type from the message context.
|
void |
setArtifactMap(SAMLArtifactMap newArtifactMap)
Set the SAML artifact map to use.
|
private void |
storeSAMLArtifactType(MessageContext<SAMLObject> messageContext,
byte[] artifactType)
Store the SAML artifact type in the message context.
|
getEndpointURLencode, getMessageToLog, logEncodedMessage, marshallMessagegetHttpServletResponse, setHttpServletResponsegetMessageContext, prepareContext, setMessageContextdestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencode, prepareContext, setMessageContext@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private SAMLArtifactMap artifactMap
@Nonnull @NotEmpty private byte[] defaultArtifactType
public java.lang.String getBindingURI()
@NonnullAfterInit public SAMLArtifactMap getArtifactMap()
public void setArtifactMap(@Nonnull
SAMLArtifactMap newArtifactMap)
newArtifactMap - the new artifactMapprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class AbstractHttpServletResponseMessageEncoder<SAMLObject>net.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected void doDestroy()
doDestroy in class AbstractHttpServletResponseMessageEncoder<SAMLObject>protected void doEncode()
throws MessageEncodingException
doEncode in class AbstractMessageEncoder<SAMLObject>MessageEncodingException - thrown if there is a problem encoding the message@Nullable
private java.lang.String getOutboundMessageIssuer(@Nonnull
MessageContext<SAMLObject> messageContext)
messageContext - the message context@Nullable
private java.lang.String getInboundMessageIssuer(@Nonnull
MessageContext<SAMLObject> messageContext)
messageContext - the message contextprivate void storeSAMLArtifactType(@Nonnull
MessageContext<SAMLObject> messageContext,
@Nonnull @NotEmpty
byte[] artifactType)
messageContext - the message contextartifactType - the artifact type to store@Nullable
private byte[] getSAMLArtifactType(@Nonnull
MessageContext<SAMLObject> messageContext)
messageContext - the message context