public final class KeyStoreParameters extends Object implements KeyStore.LoadStoreParameter
| Modifier and Type | Field and Description |
|---|---|
static org.forgerock.util.Option<KeyStoreObjectCache> |
CACHE
The caching mechanism that the key store will use.
|
static org.forgerock.util.Option<ExternalKeyWrappingStrategy> |
EXTERNAL_KEY_WRAPPING_STRATEGY
An alternative external mechanism for wrapping private and secret keys in the key store.
|
static org.forgerock.util.Option<org.forgerock.util.Factory<char[]>> |
GLOBAL_PASSWORD
The optional password which is used to protect all private and secret keys.
|
static org.forgerock.util.Option<Integer> |
PBKDF2_ITERATIONS
The number of iterations to use when deriving encryption keys from passwords using PBKDF2.
|
static org.forgerock.util.Option<Integer> |
PBKDF2_SALT_SIZE
The number of random bytes to use as the salt when deriving encryption keys from passwords using PBKDF2.
|
| Modifier and Type | Method and Description |
|---|---|
KeyStore.ProtectionParameter |
getProtectionParameter() |
static KeyStoreParameters |
newKeyStoreParameters(ConnectionFactory factory,
DN baseDN)
Creates a set of LDAP key store parameters with default options.
|
static KeyStoreParameters |
newKeyStoreParameters(ConnectionFactory factory,
DN baseDN,
org.forgerock.util.Options options)
Creates a set of LDAP key store parameters with custom options.
|
public static final org.forgerock.util.Option<org.forgerock.util.Factory<char[]>> GLOBAL_PASSWORD
null, indicating that there is no global password and that separate passwords should be used
instead.
Applications should provide a factory which always returns a new instance of the same password. The LDAP key
store will destroy the contents of the returned password after each use. It is the responsibility of the
factory to protect the in memory representation of the password between successive calls.public static final org.forgerock.util.Option<KeyStoreObjectCache> CACHE
public static final org.forgerock.util.Option<Integer> PBKDF2_ITERATIONS
public static final org.forgerock.util.Option<Integer> PBKDF2_SALT_SIZE
public static final org.forgerock.util.Option<ExternalKeyWrappingStrategy> EXTERNAL_KEY_WRAPPING_STRATEGY
password if provided.public static KeyStoreParameters newKeyStoreParameters(ConnectionFactory factory, DN baseDN)
factory - The LDAP connection factory.baseDN - The DN of the subtree containing the LDAP key store.public static KeyStoreParameters newKeyStoreParameters(ConnectionFactory factory, DN baseDN, org.forgerock.util.Options options)
factory - The LDAP connection factory.baseDN - The DN of the subtree containing the LDAP key store.options - The optional key store parameters, including the cache configuration, key store password, and crypto
parameters. The supported options are defined in this class.public KeyStore.ProtectionParameter getProtectionParameter()
getProtectionParameter in interface KeyStore.LoadStoreParameterCopyright © 2017-2020 Wren Security. All Rights Reserved.