public class ExternalPasswordCache extends Object implements PasswordCache
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String key,
long timeOut)
Checks whether the cache already contains given key.
|
int |
getCachedPasswordsCount()
Get number of cached passwords.
|
static ExternalPasswordCache |
getExternalPasswordCacheInstance() |
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.
|
public static ExternalPasswordCache getExternalPasswordCacheInstance()
public boolean contains(String key, long timeOut)
PasswordCachecontains in interface PasswordCachepublic char[] getPassword(String key)
PasswordCachegetPassword in interface PasswordCachepublic void storePassword(String key, char[] password)
PasswordCachestorePassword in interface PasswordCachepublic int getCachedPasswordsCount()
public void reset()
PasswordCachereset in interface PasswordCacheCopyright © 2018 JBoss by Red Hat. All rights reserved.