public class StorageServiceSAMLArtifactMapEntryFactory extends AbstractInitializableComponent implements SAMLArtifactMap.SAMLArtifactMapEntryFactory, org.opensaml.storage.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) |
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) |
void |
setParserPool(ParserPool pool)
Sets the parser pool used to parse serialized data.
|
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
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)
SAMLArtifactMap.SAMLArtifactMapEntry
.newEntry
in interface SAMLArtifactMap.SAMLArtifactMapEntryFactory
artifact
- 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 org.opensaml.storage.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 org.opensaml.storage.StorageSerializer<SAMLArtifactMap.SAMLArtifactMapEntry>
IOException
Copyright © 2016 JBoss by Red Hat. All rights reserved.