public class StorageServiceSAMLArtifactMap extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent implements SAMLArtifactMap
StorageService
.SAMLArtifactMap.SAMLArtifactMapEntry, SAMLArtifactMap.SAMLArtifactMapEntryFactory
Modifier and Type | Field and Description |
---|---|
private long |
artifactLifetime
Lifetime of an artifact in milliseconds.
|
private StorageService |
artifactStore
Artifact mapping storage.
|
private int |
artifactStoreKeySize
Maximum size of artifacts we can handle.
|
private SAMLArtifactMap.SAMLArtifactMapEntryFactory |
entryFactory
Factory for SAMLArtifactMapEntry instances.
|
private org.slf4j.Logger |
log
Class Logger.
|
static String |
STORAGE_CONTEXT
Storage context label.
|
Constructor and Description |
---|
StorageServiceSAMLArtifactMap()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String artifact) |
protected void |
doInitialize() |
SAMLArtifactMap.SAMLArtifactMapEntry |
get(String artifact) |
long |
getArtifactLifetime()
Get the artifact entry lifetime in milliseconds.
|
SAMLArtifactMap.SAMLArtifactMapEntryFactory |
getEntryFactory()
Get the map entry factory.
|
StorageService |
getStorageService()
Get the artifact store.
|
void |
put(String artifact,
String relyingPartyId,
String issuerId,
SAMLObject samlMessage) |
void |
remove(String artifact) |
void |
setArtifactLifetime(long lifetime)
Set the artifact entry lifetime in milliseconds.
|
void |
setEntryFactory(SAMLArtifactMap.SAMLArtifactMapEntryFactory factory)
Set the map entry factory.
|
void |
setStorageService(StorageService store)
Set the artifact store.
|
@Nonnull @NotEmpty public static final String STORAGE_CONTEXT
@Nonnull private final org.slf4j.Logger log
@NonnullAfterInit private StorageService artifactStore
private int artifactStoreKeySize
@Duration @Positive private long artifactLifetime
@Nonnull private SAMLArtifactMap.SAMLArtifactMapEntryFactory entryFactory
public StorageServiceSAMLArtifactMap()
protected void doInitialize() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize
in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.ComponentInitializationException
@NonnullAfterInit public StorageService getStorageService()
@Duration @Positive public long getArtifactLifetime()
@Nonnull public SAMLArtifactMap.SAMLArtifactMapEntryFactory getEntryFactory()
public void setStorageService(@Nonnull StorageService store)
store
- the artifact store@Duration public void setArtifactLifetime(@Duration @Positive long lifetime)
lifetime
- artifact entry lifetime in millisecondspublic void setEntryFactory(@Nonnull SAMLArtifactMap.SAMLArtifactMapEntryFactory factory)
In addition to implementing the SAMLArtifactMapEntryFactory
interface, the injected
object must support the StorageSerializer
interface to enable entries to be stored via the injected
StorageService
instance.
factory
- map entry factorypublic boolean contains(@Nonnull @NotEmpty String artifact) throws IOException
contains
in interface SAMLArtifactMap
IOException
@Nullable public SAMLArtifactMap.SAMLArtifactMapEntry get(@Nonnull @NotEmpty String artifact) throws IOException
get
in interface SAMLArtifactMap
IOException
public void put(@Nonnull @NotEmpty String artifact, @Nonnull @NotEmpty String relyingPartyId, @Nonnull @NotEmpty String issuerId, @Nonnull SAMLObject samlMessage) throws IOException
put
in interface SAMLArtifactMap
IOException
public void remove(@Nonnull @NotEmpty String artifact) throws IOException
remove
in interface SAMLArtifactMap
IOException
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.