Interface PasswordCache

  • All Known Implementing Classes:
    ExternalPasswordCache

    public interface PasswordCache
    Interface to cache passwords retrieved from external commands.
    Version:
    $Revision:$
    Author:
    Peter Skopek
    • Method Detail

      • contains

        boolean contains​(String key,
                         long timeOut)
        Checks whether the cache already contains given key. Non zero timeOut will be checked to expire cache entry.
        Parameters:
        key -
        timeOut -
        Returns:
      • getPassword

        char[] getPassword​(String key)
        Get password from the cache. Returns null if there is no such key in the cache.
        Parameters:
        key -
        Returns:
      • storePassword

        void storePassword​(String key,
                           char[] password)
        Store password to the cache.
        Parameters:
        key -
        password -
      • reset

        void reset()
        Reset the cache (clean whole cache and start all over again).