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.
| Constructor and Description |
|---|
StorageServiceSAMLArtifactMapEntryFactory()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SAMLArtifactMap.SAMLArtifactMapEntry |
deserialize(long version,
String context,
String key,
String value,
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(String artifact,
String issuerId,
String relyingPartyId,
SAMLObject samlMessage)
Factory method which produces a
SAMLArtifactMap.SAMLArtifactMapEntry. |
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, isInitializedpublic 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)
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 String serialize(@Nonnull SAMLArtifactMap.SAMLArtifactMapEntry instance) throws IOException
serialize in interface StorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>instance - object to serializeIOException - if an error occurs during serialization@Nonnull public SAMLArtifactMap.SAMLArtifactMapEntry deserialize(long version, @Nonnull @NotEmpty String context, @Nonnull @NotEmpty String key, @Nonnull @NotEmpty String value, @Nullable Long expiration) throws 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 anyIOException - if an error occurs during deserializationCopyright © 2021. All rights reserved.