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)
PasswordCache
contains
in interface PasswordCache
public char[] getPassword(String key)
PasswordCache
getPassword
in interface PasswordCache
public void storePassword(String key, char[] password)
PasswordCache
storePassword
in interface PasswordCache
public int getCachedPasswordsCount()
public void reset()
PasswordCache
reset
in interface PasswordCache
Copyright © 2017 JBoss by Red Hat. All rights reserved.