public class StorageServiceSAMLArtifactMapEntryFactory extends 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 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) |
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(ParserPool pool)
Sets the parser pool used to parse serialized data.
|
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull private ParserPool parserPool
public StorageServiceSAMLArtifactMapEntryFactory()
@Nonnull public ParserPool getParserPool()
public void setParserPool(@Nonnull 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>IOExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.