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() |
protected void |
doInitialize() |
SAMLArtifactMap |
getArtifactMap()
Get the SAML artifact map to use.
|
String |
getBindingURI() |
private String |
getInboundMessageIssuer(org.opensaml.messaging.context.MessageContext<SAMLObject> messageContext)
Get the requester.
|
private String |
getOutboundMessageIssuer(org.opensaml.messaging.context.MessageContext<SAMLObject> messageContext)
Get the outbound message issuer.
|
private byte[] |
getSAMLArtifactType(org.opensaml.messaging.context.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(org.opensaml.messaging.context.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, setMessageContextinitialize, isInitializeddestroy, isDestroyed@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private SAMLArtifactMap artifactMap
public String getBindingURI()
@NonnullAfterInit public SAMLArtifactMap getArtifactMap()
public void setArtifactMap(@Nonnull SAMLArtifactMap newArtifactMap)
newArtifactMap - the new artifactMapprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder<SAMLObject>ComponentInitializationExceptionprotected void doDestroy()
doDestroy in class org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder<SAMLObject>protected void doEncode()
throws org.opensaml.messaging.encoder.MessageEncodingException
doEncode in class org.opensaml.messaging.encoder.AbstractMessageEncoder<SAMLObject>org.opensaml.messaging.encoder.MessageEncodingException@Nullable private String getOutboundMessageIssuer(@Nonnull org.opensaml.messaging.context.MessageContext<SAMLObject> messageContext)
messageContext - the message context@Nullable private String getInboundMessageIssuer(@Nonnull org.opensaml.messaging.context.MessageContext<SAMLObject> messageContext)
messageContext - the message contextprivate void storeSAMLArtifactType(@Nonnull org.opensaml.messaging.context.MessageContext<SAMLObject> messageContext, @Nonnull @NotEmpty byte[] artifactType)
messageContext - the message contextartifactType - the artifact type to store@Nullable private byte[] getSAMLArtifactType(@Nonnull org.opensaml.messaging.context.MessageContext<SAMLObject> messageContext)
messageContext - the message contextCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.