public class StorageServiceSAMLArtifactMap extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent implements SAMLArtifactMap
StorageService.SAMLArtifactMap.SAMLArtifactMapEntry, SAMLArtifactMap.SAMLArtifactMapEntryFactory| Modifier and Type | Field and Description |
|---|---|
static String |
STORAGE_CONTEXT
Storage context label.
|
| Constructor and Description |
|---|
StorageServiceSAMLArtifactMap()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String artifact)
Checks if a given artifact has a map entry.
|
protected void |
doInitialize() |
SAMLArtifactMap.SAMLArtifactMapEntry |
get(String artifact)
Gets the artifact entry for the given 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)
Creates a mapping between a given artifact and the SAML message to which it maps.
|
void |
remove(String artifact)
Removes the artifact from this map.
|
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.
|
public StorageServiceSAMLArtifactMap()
protected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationException@NonnullAfterInit public StorageService getStorageService()
@Positive public long getArtifactLifetime()
@Nonnull public SAMLArtifactMap.SAMLArtifactMapEntryFactory getEntryFactory()
public void setStorageService(@Nonnull StorageService store)
store - the artifact storepublic 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 SAMLArtifactMapartifact - the artifact to checkIOException - if an error occurs retrieving the information@Nullable public SAMLArtifactMap.SAMLArtifactMapEntry get(@Nonnull @NotEmpty String artifact) throws IOException
get in interface SAMLArtifactMapartifact - the artifact to retrieve the entry forIOException - if an error occurs retrieving the informationpublic void put(@Nonnull @NotEmpty String artifact, @Nonnull @NotEmpty String relyingPartyId, @Nonnull @NotEmpty String issuerId, @Nonnull SAMLObject samlMessage) throws IOException
put in interface SAMLArtifactMapartifact - the artifactrelyingPartyId - ID of the party the artifact was sent toissuerId - ID of the issuer of the artifactsamlMessage - the SAML messageIOException - if an error occurs storing the informationpublic void remove(@Nonnull @NotEmpty String artifact) throws IOException
remove in interface SAMLArtifactMapartifact - artifact to be removedIOException - if an error occurs retrieving the informationCopyright © 2021. All rights reserved.