Package org.forgerock.opendj.security
Interface KeyStoreObjectCache
public interface KeyStoreObjectCache
A service provider interface for implementing key store caches. The key store cache can be configured using the
KeyStoreParameters.CACHE
option. 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
Modifier and TypeFieldDescriptionstatic final KeyStoreObjectCache
A cache implementation that does not cache anything. -
Method Summary
Modifier and TypeMethodDescriptionorg.forgerock.opendj.security.KeyStoreObject
Returns the named key store object from the cache if present, ornull
if the object is not present or has been removed.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.
-
Field Details
-
NONE
A cache implementation that does not cache anything.
-
-
Method Details
-
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
Returns the named key store object from the cache if present, ornull
if 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
null
if the object is not present.
-