public class BasicSAMLArtifactMap extends Object implements SAMLArtifactMap
StorageService
to store and retrieve artifacts.SAMLArtifactMap.SAMLArtifactMapEntry, SAMLArtifactMap.SAMLArtifactMapEntryFactory
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_STORAGE_PARTITION
The default StorageService partition name to use.
|
Constructor and Description |
---|
BasicSAMLArtifactMap(ParserPool parser,
StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage,
long lifetime)
Deprecated.
replacement
BasicSAMLArtifactMap(StorageService, long) |
BasicSAMLArtifactMap(SAMLArtifactMap.SAMLArtifactMapEntryFactory factory,
StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage,
long lifetime)
Constructor.
|
BasicSAMLArtifactMap(SAMLArtifactMap.SAMLArtifactMapEntryFactory factory,
StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage,
String storageParition,
long lifetime)
Constructor.
|
BasicSAMLArtifactMap(StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage,
long lifetime)
Constructor.
|
BasicSAMLArtifactMap(StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage,
String storageParition,
long lifetime)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String artifact)
Checks if a given artifact has a map entry.
|
SAMLArtifactMap.SAMLArtifactMapEntry |
get(String artifact)
Gets the artifact entry for the given artifact.
|
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.
|
public static final String DEFAULT_STORAGE_PARTITION
public BasicSAMLArtifactMap(ParserPool parser, StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage, long lifetime)
BasicSAMLArtifactMap(StorageService, long)
parser
- parser pool used to parse serialized messages.
(Note: ParserPool arg is deprecated and no longer used).storage
- artifact mapping storagelifetime
- lifetime of an artifact in millisecondspublic BasicSAMLArtifactMap(StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage, long lifetime)
storage
- artifact mapping storagelifetime
- lifetime of an artifact in millisecondspublic BasicSAMLArtifactMap(StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage, String storageParition, long lifetime)
storage
- artifact mapping storagestorageParition
- name of storage service partition to uselifetime
- lifetime of an artifact in millisecondspublic BasicSAMLArtifactMap(SAMLArtifactMap.SAMLArtifactMapEntryFactory factory, StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage, long lifetime)
factory
- the SAML artifact map entry factory to usestorage
- artifact mapping storagelifetime
- lifetime of an artifact in millisecondspublic BasicSAMLArtifactMap(SAMLArtifactMap.SAMLArtifactMapEntryFactory factory, StorageService<String,SAMLArtifactMap.SAMLArtifactMapEntry> storage, String storageParition, long lifetime)
factory
- the SAML artifact map entry factory to usestorage
- artifact mapping storagestorageParition
- name of storage service partition to uselifetime
- lifetime of an artifact in millisecondspublic boolean contains(String artifact)
contains
in interface SAMLArtifactMap
artifact
- the artifact to checkpublic SAMLArtifactMap.SAMLArtifactMapEntry get(String artifact)
get
in interface SAMLArtifactMap
artifact
- the artifact to retrieve the entry forpublic void put(String artifact, String relyingPartyId, String issuerId, SAMLObject samlMessage) throws MarshallingException
put
in interface SAMLArtifactMap
artifact
- the artifactrelyingPartyId
- ID of the party the artifact was sent toissuerId
- ID of the issuer of the artifactsamlMessage
- the SAML messageMarshallingException
- thrown if the given SAML message can not be marshalledpublic void remove(String artifact)
remove
in interface SAMLArtifactMap
artifact
- artifact to be removedCopyright © 2018 JBoss by Red Hat. All rights reserved.