public class StorageServiceSAMLArtifactMapEntryFactory extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent implements SAMLArtifactMap.SAMLArtifactMapEntryFactory, StorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>
StorageSerializer
for instances of BasicSAMLArtifactMapEntry
.
This implements serialization of an entry by wrapping the XML-based message in a parent element that tracks the additional associated data.
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
private net.shibboleth.utilities.java.support.xml.ParserPool |
parserPool
XML parsing component.
|
Constructor and Description |
---|
StorageServiceSAMLArtifactMapEntryFactory()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SAMLArtifactMap.SAMLArtifactMapEntry |
deserialize(long version,
String context,
String key,
String value,
Long expiration) |
net.shibboleth.utilities.java.support.xml.ParserPool |
getParserPool()
Gets the parser pool used to parse serialized data.
|
SAMLArtifactMap.SAMLArtifactMapEntry |
newEntry(String artifact,
String issuerId,
String relyingPartyId,
SAMLObject samlMessage) |
String |
serialize(SAMLArtifactMap.SAMLArtifactMapEntry instance) |
void |
setParserPool(net.shibboleth.utilities.java.support.xml.ParserPool pool)
Sets the parser pool used to parse serialized data.
|
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
@Nonnull private final org.slf4j.Logger log
@Nonnull private net.shibboleth.utilities.java.support.xml.ParserPool parserPool
public StorageServiceSAMLArtifactMapEntryFactory()
@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 parse serialized data@Nonnull public SAMLArtifactMap.SAMLArtifactMapEntry newEntry(@Nonnull @NotEmpty String artifact, @Nonnull @NotEmpty String issuerId, @Nonnull @NotEmpty String relyingPartyId, @Nonnull SAMLObject samlMessage)
newEntry
in interface SAMLArtifactMap.SAMLArtifactMapEntryFactory
@Nonnull public String serialize(@Nonnull SAMLArtifactMap.SAMLArtifactMapEntry instance) throws IOException
serialize
in interface StorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>
IOException
@Nonnull public SAMLArtifactMap.SAMLArtifactMapEntry deserialize(long version, @Nonnull @NotEmpty String context, @Nonnull @NotEmpty String key, @Nonnull @NotEmpty String value, @Nullable Long expiration) throws IOException
deserialize
in interface StorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>
IOException
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.