public abstract class AbstractPac4jDecoder
extends org.opensaml.messaging.decoder.AbstractMessageDecoder<org.opensaml.saml.common.SAMLObject>
Modifier and Type | Field and Description |
---|---|
protected WebContext |
context |
protected org.slf4j.Logger |
logger |
protected net.shibboleth.utilities.java.support.xml.ParserPool |
parserPool
Parser pool used to deserialize the message.
|
Constructor and Description |
---|
AbstractPac4jDecoder(WebContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
doDestroy() |
protected void |
doInitialize() |
protected byte[] |
getBase64DecodedMessage() |
abstract String |
getBindingURI(SAML2MessageContext messageContext)
Get the binding of the message context;.
|
net.shibboleth.utilities.java.support.xml.ParserPool |
getParserPool()
Gets the parser pool used to deserialize incoming messages.
|
protected void |
populateBindingContext(SAML2MessageContext messageContext)
Populate the context which carries information specific to this binding.
|
void |
setParserPool(net.shibboleth.utilities.java.support.xml.ParserPool pool)
Sets the parser pool used to deserialize incoming messages.
|
protected org.opensaml.core.xml.XMLObject |
unmarshallMessage(InputStream messageStream)
Helper method that deserializes and unmarshalls the message from the given stream.
|
decode, doDecode, getMessageContext, setMessageContext
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected final org.slf4j.Logger logger
protected net.shibboleth.utilities.java.support.xml.ParserPool parserPool
protected final WebContext context
public AbstractPac4jDecoder(WebContext context)
protected byte[] getBase64DecodedMessage() throws org.opensaml.messaging.decoder.MessageDecodingException
org.opensaml.messaging.decoder.MessageDecodingException
protected void doDestroy()
doDestroy
in class org.opensaml.messaging.decoder.AbstractMessageDecoder<org.opensaml.saml.common.SAMLObject>
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.ComponentInitializationException
protected void populateBindingContext(SAML2MessageContext messageContext)
messageContext
- the current message contextpublic abstract String getBindingURI(SAML2MessageContext messageContext)
messageContext
- the message contextprotected org.opensaml.core.xml.XMLObject unmarshallMessage(InputStream messageStream) throws org.opensaml.messaging.decoder.MessageDecodingException
messageStream
- input stream containing the messageorg.opensaml.messaging.decoder.MessageDecodingException
- thrown if there is a problem deserializing and unmarshalling the message@Nonnull public net.shibboleth.utilities.java.support.xml.ParserPool getParserPool()
public void setParserPool(@Nonnull net.shibboleth.utilities.java.support.xml.ParserPool pool)
pool
- parser pool used to deserialize incoming messagesCopyright © 2019. All rights reserved.