public class Pac4jHTTPArtifactDecoder
extends org.opensaml.messaging.decoder.AbstractMessageDecoder<org.opensaml.saml.common.SAMLObject>
implements org.opensaml.saml.common.binding.decoding.SAMLMessageDecoder
HTTPArtifactDecoder
but using a web context instead of the JEE HTTP servlet request.Constructor and Description |
---|
Pac4jHTTPArtifactDecoder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
decode() |
protected void |
doDecode() |
protected void |
doDestroy() |
protected void |
doInitialize() |
org.opensaml.saml.saml2.binding.artifact.SAML2ArtifactBuilderFactory |
getArtifactBuilderFactory()
Get the SAML 2 artifact builder factory.
|
org.opensaml.saml.common.binding.EndpointResolver<org.opensaml.saml.saml2.metadata.ArtifactResolutionService> |
getArtifactEndpointResolver()
Get the artifact endpoint resolver.
|
org.opensaml.saml.common.binding.BindingDescriptor |
getBindingDescriptor()
Get an optional
BindingDescriptor to inject into SAMLBindingContext created. |
String |
getBindingURI() |
net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy |
getIdentifierGenerationStrategy()
Get the identifier generation strategy.
|
protected org.opensaml.core.xml.XMLObject |
getMessageToLog()
Get the XMLObject which will be logged as the protocol message.
|
net.shibboleth.utilities.java.support.xml.ParserPool |
getParserPool()
Gets the parser pool used to deserialize incoming messages.
|
QName |
getPeerEntityRole()
Get the peer entity role
QName . |
org.opensaml.saml.metadata.resolver.RoleDescriptorResolver |
getRoleDescriptorResolver()
Get the role descriptor resolver.
|
net.shibboleth.utilities.java.support.resolver.Resolver<String,net.shibboleth.utilities.java.support.resolver.CriteriaSet> |
getSelfEntityIDResolver()
Get the resolver for the self entityID.
|
org.opensaml.soap.client.SOAPClient |
getSOAPClient()
Get the SOAP client instance.
|
String |
getSOAPClientSecurityConfigurationProfileId()
Get the SOAP client security configuration profile ID to use.
|
String |
getSOAPPipelineName()
Get the name of the specific SOAP client message pipeline to use,
for example with
PipelineFactoryHttpSOAPClient . |
protected void |
logDecodedMessage()
Log the decoded message to the protocol message logger.
|
protected void |
populateBindingContext(org.opensaml.messaging.context.MessageContext<org.opensaml.saml.common.SAMLObject> messageContext)
Populate the context which carries information specific to this binding.
|
void |
setArtifactBuilderFactory(org.opensaml.saml.saml2.binding.artifact.SAML2ArtifactBuilderFactory factory)
Set the SAML 2 artifact builder factory.
|
void |
setArtifactEndpointResolver(org.opensaml.saml.common.binding.EndpointResolver<org.opensaml.saml.saml2.metadata.ArtifactResolutionService> resolver)
Set the artifact endpoint resolver.
|
void |
setBindingDescriptor(org.opensaml.saml.common.binding.BindingDescriptor descriptor)
Set an optional
BindingDescriptor to inject into SAMLBindingContext created. |
void |
setIdentifierGenerationStrategy(net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy strategy)
Set the identifier generation strategy.
|
void |
setParserPool(net.shibboleth.utilities.java.support.xml.ParserPool pool)
Sets the parser pool used to deserialize incoming messages.
|
void |
setPeerEntityRole(QName role)
Set the peer entity role
QName . |
void |
setRoleDescriptorResolver(org.opensaml.saml.metadata.resolver.RoleDescriptorResolver resolver)
Set the role descriptor resolver.
|
void |
setSelfEntityIDResolver(net.shibboleth.utilities.java.support.resolver.Resolver<String,net.shibboleth.utilities.java.support.resolver.CriteriaSet> resolver)
Set the resolver for the self entityID.
|
void |
setSOAPClient(org.opensaml.soap.client.SOAPClient client)
Set the SOAP client instance.
|
void |
setSOAPClientSecurityConfigurationProfileId(String profileId)
Set the SOAP client security configuration profile ID to use.
|
void |
setSOAPPipelineName(String name)
Set the name of the specific SOAP client message pipeline to use,
for example with
PipelineFactoryHttpSOAPClient . |
void |
setWebContext(WebContext webContext) |
getMessageContext, setMessageContext
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void decode() throws org.opensaml.messaging.decoder.MessageDecodingException
decode
in interface org.opensaml.messaging.decoder.MessageDecoder<org.opensaml.saml.common.SAMLObject>
decode
in class org.opensaml.messaging.decoder.AbstractMessageDecoder<org.opensaml.saml.common.SAMLObject>
org.opensaml.messaging.decoder.MessageDecodingException
@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 messagesprotected 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
@NonnullAfterInit public net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy getIdentifierGenerationStrategy()
public void setIdentifierGenerationStrategy(@Nullable net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy strategy)
strategy
- the identifier generation strategy@NonnullAfterInit public net.shibboleth.utilities.java.support.resolver.Resolver<String,net.shibboleth.utilities.java.support.resolver.CriteriaSet> getSelfEntityIDResolver()
public void setSelfEntityIDResolver(@Nonnull net.shibboleth.utilities.java.support.resolver.Resolver<String,net.shibboleth.utilities.java.support.resolver.CriteriaSet> resolver)
resolver
- the resolver instance@NonnullAfterInit public QName getPeerEntityRole()
QName
.public void setPeerEntityRole(@Nonnull QName role)
QName
.role
- the peer entity role@NonnullAfterInit public org.opensaml.saml.common.binding.EndpointResolver<org.opensaml.saml.saml2.metadata.ArtifactResolutionService> getArtifactEndpointResolver()
public void setArtifactEndpointResolver(@Nullable org.opensaml.saml.common.binding.EndpointResolver<org.opensaml.saml.saml2.metadata.ArtifactResolutionService> resolver)
resolver
- the new resolver@NonnullAfterInit public org.opensaml.saml.metadata.resolver.RoleDescriptorResolver getRoleDescriptorResolver()
Must be capable of resolving descriptors based on ArtifactCriterion
.
public void setRoleDescriptorResolver(@Nullable org.opensaml.saml.metadata.resolver.RoleDescriptorResolver resolver)
Must be capable of resolving descriptors based on ArtifactCriterion
.
resolver
- the role descriptor resolver@NonnullAfterInit public org.opensaml.saml.saml2.binding.artifact.SAML2ArtifactBuilderFactory getArtifactBuilderFactory()
public void setArtifactBuilderFactory(@Nullable org.opensaml.saml.saml2.binding.artifact.SAML2ArtifactBuilderFactory factory)
factory
- the artifact builder factory@NonnullAfterInit public org.opensaml.soap.client.SOAPClient getSOAPClient()
public void setSOAPClient(@Nonnull org.opensaml.soap.client.SOAPClient client)
client
- the SOAP client@Nullable public String getSOAPPipelineName()
PipelineFactoryHttpSOAPClient
.public void setSOAPPipelineName(@Nullable String name)
PipelineFactoryHttpSOAPClient
.name
- the pipeline name, or null@Nullable public String getSOAPClientSecurityConfigurationProfileId()
@Nonnull public void setSOAPClientSecurityConfigurationProfileId(@Nullable String profileId)
profileId
- the profile ID, or null@Nonnull @NotEmpty public String getBindingURI()
getBindingURI
in interface org.opensaml.saml.common.binding.decoding.SAMLMessageDecoder
@Nullable public org.opensaml.saml.common.binding.BindingDescriptor getBindingDescriptor()
BindingDescriptor
to inject into SAMLBindingContext
created.public void setBindingDescriptor(@Nullable org.opensaml.saml.common.binding.BindingDescriptor descriptor)
BindingDescriptor
to inject into SAMLBindingContext
created.descriptor
- a binding descriptorprotected void doDecode() throws org.opensaml.messaging.decoder.MessageDecodingException
doDecode
in class org.opensaml.messaging.decoder.AbstractMessageDecoder<org.opensaml.saml.common.SAMLObject>
org.opensaml.messaging.decoder.MessageDecodingException
protected void populateBindingContext(org.opensaml.messaging.context.MessageContext<org.opensaml.saml.common.SAMLObject> messageContext)
messageContext
- the current message contextprotected void logDecodedMessage()
protected org.opensaml.core.xml.XMLObject getMessageToLog()
public void setWebContext(@Nullable WebContext webContext)
Copyright © 2019. All rights reserved.