Class HTTPArtifactDecoder
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.decoder.AbstractMessageDecoder
-
- org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
-
- org.opensaml.messaging.decoder.servlet.BaseHttpServletRequestXMLMessageDecoder
-
- org.opensaml.saml.saml1.binding.decoding.impl.HTTPArtifactDecoder
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageDecoder,HttpServletRequestMessageDecoder,SAMLMessageDecoder
public class HTTPArtifactDecoder extends BaseHttpServletRequestXMLMessageDecoder implements SAMLMessageDecoder
SAML 1.X HTTP Artifact message decoder. NOTE: This decoder is not yet implemented.
-
-
Field Summary
Fields Modifier and Type Field Description private BindingDescriptorbindingDescriptorOptionalBindingDescriptorto inject intoSAMLBindingContextcreated.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description HTTPArtifactDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddecodeTarget(MessageContext messageContext, javax.servlet.http.HttpServletRequest request)Decodes the TARGET parameter and adds it to the message context.protected voiddoDecode()BindingDescriptorgetBindingDescriptor()Get an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.StringgetBindingURI()protected voidpopulateBindingContext(MessageContext messageContext)Populate the context which carries information specific to this binding.protected voidprocessArtifacts(MessageContext messageContext, javax.servlet.http.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, doDestroy, doInitialize, getMessageToLog, getParserPool, logDecodedMessage, setParserPool, unmarshallMessage, validateHttpRequest
-
Methods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
getHttpServletRequest, setHttpServletRequest
-
Methods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
getMessageContext, setMessageContext
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Methods inherited from interface org.opensaml.messaging.decoder.MessageDecoder
decode, getMessageContext
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
bindingDescriptor
@Nullable private BindingDescriptor bindingDescriptor
OptionalBindingDescriptorto inject intoSAMLBindingContextcreated.
-
-
Method Detail
-
getBindingURI
@Nonnull @NotEmpty public String getBindingURI()
- Specified by:
getBindingURIin interfaceSAMLMessageDecoder
-
getBindingDescriptor
@Nullable public BindingDescriptor getBindingDescriptor()
Get an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.- Returns:
- binding descriptor
-
setBindingDescriptor
public void setBindingDescriptor(@Nullable BindingDescriptor descriptor)Set an optionalBindingDescriptorto inject intoSAMLBindingContextcreated.- Parameters:
descriptor- a binding descriptor
-
doDecode
protected void doDecode() throws MessageDecodingException- Specified by:
doDecodein classAbstractMessageDecoder- Throws:
MessageDecodingException
-
decodeTarget
protected void decodeTarget(MessageContext messageContext, javax.servlet.http.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(MessageContext messageContext, javax.servlet.http.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
protected void populateBindingContext(MessageContext messageContext)
Populate the context which carries information specific to this binding.- Parameters:
messageContext- the current message context
-
-