public enum KeyFileSettings extends Enum<KeyFileSettings>
KeyRing
.Enum Constant and Description |
---|
VERSION1 |
Modifier and Type | Field and Description |
---|---|
static KeyFileSettings |
DEFAULT
This is the default settings.
|
Modifier and Type | Method and Description |
---|---|
CipherTransformation |
getCipherTransformation()
Get the
CipherTransformation to use for the PBKDF2 of the KeyRing to encrypt/decrypt a key file. |
int |
getDefaultSaltLength()
Get the default salt length to use for the PBKDF2 of the
KeyRing to encrypt/decrypt a key file. |
String |
getEncoding()
Get the encoding to use for the PBKDF2 of the
KeyRing to encrypt/decrypt a key file. |
int |
getIterations()
Get the iterations to use for the PBKDF2 of the
KeyRing to encrypt/decrypt a key file. |
AESKeyStrength |
getKeyStrength()
Get the
AESKeyStrength to use for the PBKDF2 of the KeyRing to encrypt/decrypt a key file. |
MacAlgorithm |
getMacAlgorithm()
Get the
MacAlgorithm to use for the PBKDF2 of the KeyRing to encrypt/decrypt a key file. |
static KeyFileSettings |
getSettings(long version)
Get the settings with the matching version.
|
long |
getVersion()
Get the version of the key file.
|
static KeyFileSettings |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyFileSettings[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyFileSettings VERSION1
public static KeyFileSettings DEFAULT
public static KeyFileSettings[] values()
for (KeyFileSettings c : KeyFileSettings.values()) System.out.println(c);
public static KeyFileSettings valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static KeyFileSettings getSettings(long version)
version
- the version of the settings to findKeyFileSettings
with the matching versionIllegalArgumentException
- thrown if there is no settings with the matching versionpublic CipherTransformation getCipherTransformation()
CipherTransformation
to use for the PBKDF2 of the KeyRing
to encrypt/decrypt a key file.CipherTransformation
to use for the PBKDF2public int getDefaultSaltLength()
KeyRing
to encrypt/decrypt a key file.public String getEncoding()
KeyRing
to encrypt/decrypt a key file.public int getIterations()
KeyRing
to encrypt/decrypt a key file.public AESKeyStrength getKeyStrength()
AESKeyStrength
to use for the PBKDF2 of the KeyRing
to encrypt/decrypt a key file.AESKeyStrength
to use for the PBKDF2public MacAlgorithm getMacAlgorithm()
MacAlgorithm
to use for the PBKDF2 of the KeyRing
to encrypt/decrypt a key file.MacAlgorithm
to use for the PBKDF2public long getVersion()
Copyright © 2021. All rights reserved.