| Modifier and Type | Field and Description |
|---|---|
private ConcurrentMap<String,ConcurrentMap<String,ConcurrentMap<String,AttributeRelease>>> |
attributeReleasePartition
The attribute release partition.
|
private CacheManager |
cacheManager
The cache manager.
|
private ConcurrentMap<String,User> |
userPartition
The user partition.
|
| Constructor and Description |
|---|
CacheStorage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAttributeRelease(String userId,
String relyingPartyId,
String attributeId)
Checks if the storage contains a attribute release for a specific user, relying party and attribute.
|
boolean |
containsUser(String userId)
Checks if the storage contains a user.
|
void |
createAttributeRelease(String userId,
String relyingPartyId,
AttributeRelease attributeRelease)
Creates an attribute releases for a specific user and relying party.
|
void |
createUser(User user)
Creates a user.
|
void |
deleteAttributeReleases(String userId,
String relyingPartyId)
Deletes the attribute releases from the storage for a specific user and relying party.
|
void |
initialize()
Initializes the cache storage.
|
Collection<AttributeRelease> |
readAttributeReleases(String userId,
String relyingPartyId)
Reads the attribute releases from the storage for a specific user and relying party.
|
User |
readUser(String userId)
Reads a user from the storage.
|
void |
updateAttributeRelease(String userId,
String relyingPartyId,
AttributeRelease attributeRelease)
Updates the attribute releases for a specific user and relying party.
|
void |
updateUser(User user)
Updates a user.
|
private CacheManager cacheManager
private ConcurrentMap<String,User> userPartition
User.private ConcurrentMap<String,ConcurrentMap<String,ConcurrentMap<String,AttributeRelease>>> attributeReleasePartition
AttributeRelease.public void initialize()
public boolean containsUser(String userId)
containsUser in interface StorageuserId - The user id.public void updateUser(User user)
updateUser in interface Storageuser - The user.public void createUser(User user)
createUser in interface Storageuser - The user.public Collection<AttributeRelease> readAttributeReleases(String userId, String relyingPartyId)
readAttributeReleases in interface StorageuserId - The user id.relyingPartyId - The relying party id.public void deleteAttributeReleases(String userId, String relyingPartyId)
deleteAttributeReleases in interface StorageuserId - The user id.relyingPartyId - The relying party id.public boolean containsAttributeRelease(String userId, String relyingPartyId, String attributeId)
containsAttributeRelease in interface StorageuserId - The user id.relyingPartyId - The relying party id.attributeId - attribute id.public void updateAttributeRelease(String userId, String relyingPartyId, AttributeRelease attributeRelease)
updateAttributeRelease in interface StorageuserId - The user id.relyingPartyId - The relying party id.attributeRelease - The attribute release.public void createAttributeRelease(String userId, String relyingPartyId, AttributeRelease attributeRelease)
createAttributeRelease in interface StorageuserId - The user id.relyingPartyId - The relying party id.attributeRelease - The attribute release.Copyright © 1999–2014. All rights reserved.