public class OpenSSHKeyEncryptionContext extends PrivateKeyEncryptionContext
PrivateKeyEncryptionContext
for use with a OpenSSHKeyPairResourceWriter
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AES |
static int |
DEFAULT_KDF_ROUNDS
Default number of bcrypt KDF rounds to apply.
|
private int |
kdfRounds |
DEFAULT_CIPHER_MODE
Constructor and Description |
---|
OpenSSHKeyEncryptionContext() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getCipherFactoryName() |
java.lang.String |
getCipherName() |
int |
getKdfRounds()
Retrieves the number of KDF rounds to apply.
|
void |
setCipherName(java.lang.String value) |
void |
setKdfRounds(int rounds)
Sets the number of KDF rounds to apply.
|
clone, equals, getCipherMode, getCipherType, getInitVector, getPassword, getPrivateKeyObfuscator, getRegisteredPrivateKeyObfuscator, getRegisteredPrivateKeyObfuscatorCiphers, getRegisteredPrivateKeyObfuscators, hashCode, initializeObfuscator, newPrivateKeyEncryptionContext, parseAlgorithmInfo, parseAlgorithmInfo, registerPrivateKeyObfuscator, registerPrivateKeyObfuscator, resolvePrivateKeyObfuscator, setCipherMode, setCipherType, setInitVector, setPassword, setPrivateKeyObfuscator, toString, unregisterPrivateKeyObfuscator, unregisterPrivateKeyObfuscator
public static final int DEFAULT_KDF_ROUNDS
public static final java.lang.String AES
private int kdfRounds
public java.lang.String getCipherName()
getCipherName
in class PrivateKeyEncryptionContext
public void setCipherName(java.lang.String value)
setCipherName
in class PrivateKeyEncryptionContext
public int getKdfRounds()
DEFAULT_KDF_ROUNDS
public void setKdfRounds(int rounds)
DEFAULT_KDF_ROUNDS
, set that default.rounds
- number of rounds to applyprotected java.lang.String getCipherFactoryName()