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 theKeyStoreParameters.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
Fields Modifier and Type Field Description static KeyStoreObjectCache
NONE
A cache implementation that does not cache anything.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.forgerock.opendj.security.KeyStoreObject
get(String alias)
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 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, 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.
-
-