public class ExpiringCacheKeyManagerParameters
extends java.lang.Object
implements javax.net.ssl.ManagerFactoryParameters
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_CACHE_EXPIRATION
Default cache expiration in seconds, one hour
|
| Constructor and Description |
|---|
ExpiringCacheKeyManagerParameters(java.security.KeyStore keyStore)
Create without password
|
ExpiringCacheKeyManagerParameters(java.security.KeyStore keyStore,
char[] password)
Create without password
|
| Modifier and Type | Method and Description |
|---|---|
static ExpiringCacheKeyManagerParameters |
forKeyStore(java.security.KeyStore keyStore)
Convenience factory method without keystore password
|
static ExpiringCacheKeyManagerParameters |
forKeyStore(java.security.KeyStore keyStore,
char[] password)
Convenience factory method
|
long |
getCacheRevalidation() |
java.security.KeyStore |
getKeyStore() |
char[] |
getPassword() |
ExpiringCacheKeyManagerParameters |
withPassword(char[] password)
Sets keystore password
|
ExpiringCacheKeyManagerParameters |
withRevalidation(long revalidation)
Sets cache revalidation time.
|
public static final long DEFAULT_CACHE_EXPIRATION
public ExpiringCacheKeyManagerParameters(java.security.KeyStore keyStore)
keyStore - the keyStore to usepublic ExpiringCacheKeyManagerParameters(java.security.KeyStore keyStore,
char[] password)
keyStore - the keyStore to usepassword - the keystore passwordpublic ExpiringCacheKeyManagerParameters withPassword(char[] password)
password - the KeyStore password to usepublic ExpiringCacheKeyManagerParameters withRevalidation(long revalidation)
revalidation - cache revalidation in secondspublic java.security.KeyStore getKeyStore()
public char[] getPassword()
public long getCacheRevalidation()
public static ExpiringCacheKeyManagerParameters forKeyStore(java.security.KeyStore keyStore)
keyStore - the KeyStore to usepublic static ExpiringCacheKeyManagerParameters forKeyStore(java.security.KeyStore keyStore, char[] password)
keyStore - the KeyStore to usepassword - the KeyStore password