public class OpenSSHKeyEncryptionContext extends PrivateKeyEncryptionContext
PrivateKeyEncryptionContext
for use with a OpenSSHKeyPairResourceWriter
.Modifier and Type | Field and Description |
---|---|
static String |
AES |
static int |
DEFAULT_KDF_ROUNDS
Default number of bcrypt KDF rounds to apply.
|
DEFAULT_CIPHER_MODE
Constructor and Description |
---|
OpenSSHKeyEncryptionContext() |
Modifier and Type | Method and Description |
---|---|
protected String |
getCipherFactoryName() |
String |
getCipherName() |
int |
getKdfRounds()
Retrieves the number of KDF rounds to apply.
|
void |
setCipherName(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 String AES
public String getCipherName()
getCipherName
in class PrivateKeyEncryptionContext
public void setCipherName(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 String getCipherFactoryName()
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.