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.
|
getEndpointURL
encode, getMessageToLog, logEncodedMessage, marshallMessage
getHttpServletResponse, setHttpServletResponse
getMessageContext, prepareContext, setMessageContext
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
encode, prepareContext, setMessageContext
@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private SAMLArtifactMap artifactMap
@Nonnull @NotEmpty private byte[] defaultArtifactType
public 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 org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder<SAMLObject>
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected 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–2020 Shibboleth Consortium. All rights reserved.