public class CookieCache extends Object
Constructor and Description |
---|
CookieCache() |
Modifier and Type | Method and Description |
---|---|
void |
addActiveSp(String key,
String activeSp) |
void |
cacheSamlAssertion(String key,
Element token)
Puts the SAML assertion into the cache
|
void |
clearCache() |
Set<String> |
getActiveSpSet(String key) |
Map<String,Set<String>> |
getAllSamlSubjects(SecurityManager securityManager)
Retrieves all cached, active SAML assertions.
|
Element |
getSamlAssertion(String key)
Retrieves the SAML assertion associated with the provided key.
|
void |
removeSamlAssertion(String key) |
void |
setExpirationTime(int expirationMinutes)
Set the expiration time for the cache.
|
public void clearCache()
public void cacheSamlAssertion(String key, Element token)
key
- key corresponding to the SAML assertiontoken
- the SAML assertion to be cachedpublic Map<String,Set<String>> getAllSamlSubjects(SecurityManager securityManager)
public Element getSamlAssertion(String key)
key
- the corresponding key for the assertionpublic void removeSamlAssertion(String key)
public void setExpirationTime(int expirationMinutes)
expirationMinutes
- Value (in minutes) to set the cache expiration to.This work is licensed under a Creative Commons Attribution 4.0 International License.