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.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final KeyStoreObjectCache
    A cache implementation that does not cache anything.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.forgerock.opendj.security.KeyStoreObject
    get(String alias)
    Returns the named key store object from the cache if present, or null 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

      static final KeyStoreObjectCache 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

      org.forgerock.opendj.security.KeyStoreObject get(String alias)
      Returns the named key store object from the cache if present, or null 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.