Class StorageServiceSAMLArtifactMapEntryFactory
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.saml.common.binding.artifact.impl.StorageServiceSAMLArtifactMapEntryFactory
-
- All Implemented Interfaces:
net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.InitializableComponent,org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntryFactory,org.opensaml.storage.StorageSerializer<org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry>
public class StorageServiceSAMLArtifactMapEntryFactory extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent implements org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntryFactory, org.opensaml.storage.StorageSerializer<org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry>A factory andStorageSerializerfor instances ofBasicSAMLArtifactMapEntry.This implements serialization of an entry by wrapping the XML-based message in a parent element that tracks the additional associated data.
-
-
Field Summary
Fields Modifier and Type Field Description private LoggerlogClass logger.private net.shibboleth.utilities.java.support.xml.ParserPoolparserPoolXML parsing component.
-
Constructor Summary
Constructors Constructor Description StorageServiceSAMLArtifactMapEntryFactory()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntrydeserialize(long version, String context, String key, String value, Long expiration)net.shibboleth.utilities.java.support.xml.ParserPoolgetParserPool()Gets the parser pool used to parse serialized data.org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntrynewEntry(String artifact, String issuerId, String relyingPartyId, org.opensaml.saml.common.SAMLObject samlMessage)Stringserialize(org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry instance)voidsetParserPool(net.shibboleth.utilities.java.support.xml.ParserPool pool)Sets the parser pool used to parse serialized data.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final Logger log
Class logger.
-
parserPool
@Nonnull private net.shibboleth.utilities.java.support.xml.ParserPool parserPool
XML parsing component.
-
-
Method Detail
-
getParserPool
@Nonnull public net.shibboleth.utilities.java.support.xml.ParserPool getParserPool()
Gets the parser pool used to parse serialized data.- Returns:
- parser pool used to parse serialized data
-
setParserPool
public void setParserPool(@Nonnull net.shibboleth.utilities.java.support.xml.ParserPool pool)Sets the parser pool used to parse serialized data.- Parameters:
pool- parser pool used to parse serialized data
-
newEntry
@Nonnull public org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry newEntry(@Nonnull @NotEmpty String artifact, @Nonnull @NotEmpty String issuerId, @Nonnull @NotEmpty String relyingPartyId, @Nonnull org.opensaml.saml.common.SAMLObject samlMessage)- Specified by:
newEntryin interfaceorg.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntryFactory
-
serialize
@Nonnull public String serialize(@Nonnull org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry instance) throws IOException
- Specified by:
serializein interfaceorg.opensaml.storage.StorageSerializer<org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry>- Throws:
IOException
-
deserialize
@Nonnull public org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry deserialize(long version, @Nonnull @NotEmpty String context, @Nonnull @NotEmpty String key, @Nonnull @NotEmpty String value, @Nullable Long expiration) throws IOException- Specified by:
deserializein interfaceorg.opensaml.storage.StorageSerializer<org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry>- Throws:
IOException
-
-