Package org.jboss.security
Interface PasswordCache
-
- All Known Implementing Classes:
ExternalPasswordCache
public interface PasswordCache
Interface to cache passwords retrieved from external commands.- Version:
- $Revision:$
- Author:
- Peter Skopek
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(String key, long timeOut)
Checks whether the cache already contains given key.char[]
getPassword(String key)
Get password from the cache.void
reset()
Reset the cache (clean whole cache and start all over again).void
storePassword(String key, char[] password)
Store password to the cache.
-
-
-
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).
-
-