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,
java.lang.String context,
java.lang.String key,
java.lang.String value,
java.lang.Long expiration)
Returns an object recovered from a string produced through the
StorageSerializer.serialize(Type) method. |
net.shibboleth.utilities.java.support.xml.ParserPool |
getParserPool()
Gets the parser pool used to parse serialized data.
|
SAMLArtifactMap.SAMLArtifactMapEntry |
newEntry(java.lang.String artifact,
java.lang.String issuerId,
java.lang.String relyingPartyId,
SAMLObject samlMessage)
Factory method which produces a
SAMLArtifactMap.SAMLArtifactMapEntry. |
java.lang.String |
serialize(SAMLArtifactMap.SAMLArtifactMapEntry instance)
Returns a string representing the input object.
|
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 java.lang.String artifact, @Nonnull @NotEmpty java.lang.String issuerId, @Nonnull @NotEmpty java.lang.String relyingPartyId, @Nonnull SAMLObject samlMessage)
SAMLArtifactMap.SAMLArtifactMapEntry.newEntry in interface SAMLArtifactMap.SAMLArtifactMapEntryFactoryartifact - the artifactissuerId - ID of the issuer of the artifactrelyingPartyId - ID of the party the artifact was sent tosamlMessage - the SAML message@Nonnull
public java.lang.String serialize(@Nonnull
SAMLArtifactMap.SAMLArtifactMapEntry instance)
throws java.io.IOException
serialize in interface StorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>instance - object to serializejava.io.IOException - if an error occurs during serialization@Nonnull public SAMLArtifactMap.SAMLArtifactMapEntry deserialize(long version, @Nonnull @NotEmpty java.lang.String context, @Nonnull @NotEmpty java.lang.String key, @Nonnull @NotEmpty java.lang.String value, @Nullable java.lang.Long expiration) throws java.io.IOException
StorageSerializer.serialize(Type) method.deserialize in interface StorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>version - record versioncontext - context of recordkey - key of recordvalue - data to deserializeexpiration - expiration of record, if anyjava.io.IOException - if an error occurs during deserialization