Package org.forgerock.opendj.security
Interface KeyStoreObjectCache
-
public interface KeyStoreObjectCacheA service provider interface for implementing key store caches. The key store cache can be configured using theKeyStoreParameters.CACHEoption. It is strongly recommended that cache implementations evict key store objects after a period of time in order to avoid returning stale objects.
-
-
Field Summary
Fields Modifier and Type Field Description static KeyStoreObjectCacheNONEA cache implementation that does not cache anything.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.forgerock.opendj.security.KeyStoreObjectget(String alias)Returns the named key store object from the cache if present, ornullif the object is not present or has been removed.voidput(org.forgerock.opendj.security.KeyStoreObject keyStoreObject)Puts a key store object in the cache replacing any existing key store object with the same alias.
-
-
-
Field Detail
-
NONE
static final KeyStoreObjectCache NONE
A cache implementation that does not cache anything.
-
-
Method Detail
-
put
void put(org.forgerock.opendj.security.KeyStoreObject keyStoreObject)
Puts a key store object in the cache replacing any existing key store object with the same alias.- Parameters:
keyStoreObject- The key store object.
-
get
org.forgerock.opendj.security.KeyStoreObject get(String alias)
Returns the named key store object from the cache if present, ornullif the object is not present or has been removed.- Parameters:
alias- The alias of the key store object to be retrieved.- Returns:
- The key store object or
nullif the object is not present.
-
-