public enum PemKeyType extends Enum<PemKeyType>
| Modifier and Type | Field and Description |
|---|---|
String |
algorithm |
Enums.HashType |
hash |
int |
keySizeInBits |
String |
keyType |
| Modifier and Type | Method and Description |
|---|---|
Key |
readKey(BufferedReader reader)
Reads a single key from
reader. |
static PemKeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PemKeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PemKeyType RSA_PSS_2048_SHA256
public static final PemKeyType RSA_PSS_3072_SHA256
public static final PemKeyType RSA_PSS_4096_SHA256
public static final PemKeyType RSA_PSS_4096_SHA512
public static final PemKeyType RSA_SIGN_PKCS1_2048_SHA256
public static final PemKeyType RSA_SIGN_PKCS1_3072_SHA256
public static final PemKeyType RSA_SIGN_PKCS1_4096_SHA256
public static final PemKeyType RSA_SIGN_PKCS1_4096_SHA512
public static final PemKeyType ECDSA_P256_SHA256
public static final PemKeyType ECDSA_P384_SHA384
public static final PemKeyType ECDSA_P521_SHA512
public final String keyType
public final String algorithm
public final int keySizeInBits
public final Enums.HashType hash
public static PemKeyType[] values()
for (PemKeyType c : PemKeyType.values()) System.out.println(c);
public static PemKeyType 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 null@Nullable public Key readKey(BufferedReader reader) throws IOException
reader.Key or null if the reader doesn't contain a valid PEM.IOException