Class StorageServiceSAMLArtifactMapEntryFactory
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.saml.common.binding.artifact.impl.StorageServiceSAMLArtifactMapEntryFactory
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,SAMLArtifactMap.SAMLArtifactMapEntryFactory,StorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>
public class StorageServiceSAMLArtifactMapEntryFactory extends AbstractInitializableComponent implements SAMLArtifactMap.SAMLArtifactMapEntryFactory, StorageSerializer<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 org.slf4j.LoggerlogClass logger.private ParserPoolparserPoolXML parsing component.
-
Constructor Summary
Constructors Constructor Description StorageServiceSAMLArtifactMapEntryFactory()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SAMLArtifactMap.SAMLArtifactMapEntrydeserialize(long version, String context, String key, String value, Long expiration)ParserPoolgetParserPool()Gets the parser pool used to parse serialized data.SAMLArtifactMap.SAMLArtifactMapEntrynewEntry(String artifact, String issuerId, String relyingPartyId, SAMLObject samlMessage)Stringserialize(SAMLArtifactMap.SAMLArtifactMapEntry instance)voidsetParserPool(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
-
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.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
parserPool
@Nonnull private ParserPool parserPool
XML parsing component.
-
-
Method Detail
-
getParserPool
@Nonnull public ParserPool getParserPool()
Gets the parser pool used to parse serialized data.- Returns:
- parser pool used to parse serialized data
-
setParserPool
public void setParserPool(@Nonnull ParserPool pool)Sets the parser pool used to parse serialized data.- Parameters:
pool- parser pool used to parse serialized data
-
newEntry
@Nonnull public SAMLArtifactMap.SAMLArtifactMapEntry newEntry(@Nonnull @NotEmpty String artifact, @Nonnull @NotEmpty String issuerId, @Nonnull @NotEmpty String relyingPartyId, @Nonnull SAMLObject samlMessage)
- Specified by:
newEntryin interfaceSAMLArtifactMap.SAMLArtifactMapEntryFactory
-
serialize
@Nonnull public String serialize(@Nonnull SAMLArtifactMap.SAMLArtifactMapEntry instance) throws IOException
- Specified by:
serializein interfaceStorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>- Throws:
IOException
-
deserialize
@Nonnull public 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 interfaceStorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>- Throws:
IOException
-
-