Class HTTPArtifactEncoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.encoder.AbstractMessageEncoder
org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder
org.opensaml.messaging.encoder.servlet.BaseHttpServletResponseXMLMessageEncoder
org.opensaml.saml.common.binding.impl.BaseSAMLHttpServletResponseEncoder
org.opensaml.saml.saml1.binding.encoding.impl.BaseSAML1MessageEncoder
org.opensaml.saml.saml1.binding.encoding.impl.HTTPArtifactEncoder
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageEncoder,HttpServletResponseMessageEncoder,SAMLMessageEncoder
SAML 1.X HTTP Artifact message encoder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SAMLArtifactMapSAML artifact map used to store created artifacts for later retrival.private byte[]Default artifact type to use when encoding messages.private final org.slf4j.LoggerClass logger.Fields inherited from class org.opensaml.messaging.encoder.AbstractMessageEncoder
BASE_PROTOCOL_MESSAGE_LOGGER_CATEGORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoEncode()protected voidGet the SAML artifact map to use.private StringgetInboundMessageIssuer(MessageContext messageContext) Get the requester.private StringgetOutboundMessageIssuer(MessageContext messageContext) Get the outbound message issuer.private byte[]getSAMLArtifactType(MessageContext messageContext) Get the SAML artifact type from the message context.voidsetArtifactMap(SAMLArtifactMap newArtifactMap) Set the SAML artifact map to use.private voidstoreSAMLArtifactType(MessageContext messageContext, byte[] artifactType) Store the SAML artifact type in the message context.Methods inherited from class org.opensaml.saml.saml1.binding.encoding.impl.BaseSAML1MessageEncoder
getEndpointURLMethods inherited from class org.opensaml.messaging.encoder.servlet.BaseHttpServletResponseXMLMessageEncoder
encode, marshallMessage, serializeMessageForLoggingMethods inherited from class org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder
getHttpServletResponse, getHttpServletResponseSupplier, setHttpServletResponseSupplierMethods inherited from class org.opensaml.messaging.encoder.AbstractMessageEncoder
getMessageContext, getMessageToLog, getProtocolMessageLogger, getProtocolMessageLoggerSubCategory, logEncodedMessage, prepareContext, setMessageContext, setProtocolMessageLoggerSubCategoryMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitializedMethods inherited from interface org.opensaml.messaging.encoder.MessageEncoder
encode, prepareContext, setMessageContext
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
artifactMap
SAML artifact map used to store created artifacts for later retrival. -
defaultArtifactType
Default artifact type to use when encoding messages.
-
-
Constructor Details
-
HTTPArtifactEncoder
public HTTPArtifactEncoder()Constructor.
-
-
Method Details
-
getBindingURI
-
getArtifactMap
Get the SAML artifact map to use.- Returns:
- the artifactMap.
-
setArtifactMap
Set the SAML artifact map to use.- Parameters:
newArtifactMap- the new artifactMap
-
doInitialize
- Overrides:
doInitializein classAbstractHttpServletResponseMessageEncoder- Throws:
ComponentInitializationException
-
doEncode
- Specified by:
doEncodein classAbstractMessageEncoder- Throws:
MessageEncodingException
-
getOutboundMessageIssuer
Get the outbound message issuer.- Parameters:
messageContext- the message context- Returns:
- the outbound message issuer
-
getInboundMessageIssuer
Get the requester.- Parameters:
messageContext- the message context- Returns:
- the requester
-
storeSAMLArtifactType
private void storeSAMLArtifactType(@Nonnull MessageContext messageContext, @Nonnull @NotEmpty byte[] artifactType) Store the SAML artifact type in the message context.- Parameters:
messageContext- the message contextartifactType- the artifact type to store
-
getSAMLArtifactType
Get the SAML artifact type from the message context.- Parameters:
messageContext- the message context- Returns:
- the artifact type
-