Class HTTPArtifactDecoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder
org.opensaml.saml.common.binding.impl.BaseSAMLHttpServletRequestDecoder
org.opensaml.saml.saml1.binding.decoding.impl.HTTPArtifactDecoder
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageDecoder,HttpServletRequestMessageDecoder,SAMLMessageDecoder
public class HTTPArtifactDecoder
extends BaseSAMLHttpServletRequestDecoder
implements SAMLMessageDecoder
SAML 1.X HTTP Artifact message decoder.
NOTE: This decoder is not yet implemented.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BindingDescriptorOptionalBindingDescriptorto inject intoSAMLBindingContextcreated.private final org.slf4j.LoggerClass logger.Fields inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
BASE_PROTOCOL_MESSAGE_LOGGER_CATEGORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecodeTarget(MessageContext messageContext, HttpServletRequest request) Decodes the TARGET parameter and adds it to the message context.protected voiddoDecode()Performs the decoding logic.Get an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.Gets the SAML binding URI supported by this decoder.protected voidpopulateBindingContext(MessageContext messageContext) Populate the context which carries information specific to this binding.protected voidprocessArtifacts(MessageContext messageContext, HttpServletRequest request) Process the incoming artifacts by decoding the artifacts, dereferencing them from the artifact source and storing the resulting response (with assertions) in the message context.voidsetBindingDescriptor(BindingDescriptor descriptor) Set an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.Methods inherited from class org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder
decode, doInitialize, getParserPool, serializeMessageForLogging, setParserPool, unmarshallMessage, validateHttpRequestMethods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
getHttpServletRequest, getHttpServletRequestSupplier, setHttpServletRequestSupplierMethods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
getMessageContext, getMessageToLog, getProtocolMessageLogger, getProtocolMessageLoggerSubCategory, logDecodedMessage, 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.decoder.MessageDecoder
decode, getMessageContext
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
bindingDescriptor
OptionalBindingDescriptorto inject intoSAMLBindingContextcreated.
-
-
Constructor Details
-
HTTPArtifactDecoder
public HTTPArtifactDecoder()
-
-
Method Details
-
getBindingURI
Gets the SAML binding URI supported by this decoder.- Specified by:
getBindingURIin interfaceSAMLMessageDecoder- Returns:
- SAML binding URI supported by this decoder
-
getBindingDescriptor
Get an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.- Returns:
- binding descriptor
-
setBindingDescriptor
Set an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.- Parameters:
descriptor- a binding descriptor
-
doDecode
Performs the decoding logic. By the time this is called, this decoder has already been initialized and checked to ensure that it has not been destroyed.- Specified by:
doDecodein classAbstractMessageDecoder- Throws:
MessageDecodingException- thrown if there is a problem decoding the message
-
decodeTarget
protected void decodeTarget(@Nonnull MessageContext messageContext, @Nonnull HttpServletRequest request) throws MessageDecodingException Decodes the TARGET parameter and adds it to the message context.- Parameters:
messageContext- current message contextrequest- current servlet request- Throws:
MessageDecodingException- thrown if there is a problem decoding the TARGET parameter.
-
processArtifacts
protected void processArtifacts(@Nonnull MessageContext messageContext, @Nonnull HttpServletRequest request) throws MessageDecodingException Process the incoming artifacts by decoding the artifacts, dereferencing them from the artifact source and storing the resulting response (with assertions) in the message context.- Parameters:
messageContext- current message contextrequest- current servlet request- Throws:
MessageDecodingException- thrown if there is a problem decoding or dereferencing the artifacts
-
populateBindingContext
Populate the context which carries information specific to this binding.- Parameters:
messageContext- the current message context
-