public static enum CertBuilder.KeyType extends java.lang.Enum<CertBuilder.KeyType>
Allowed key types
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAlgorithm(CertBuilder.KeyType keyType)
Get the algorithm matching a keytype
|
static boolean |
isKeyType(java.lang.String suspect)
Checks if a String matches a keyType
|
static CertBuilder.KeyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CertBuilder.KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CertBuilder.KeyType EC
public static final CertBuilder.KeyType RSA
public static CertBuilder.KeyType[] values()
for (CertBuilder.KeyType c : CertBuilder.KeyType.values()) System.out.println(c);
public static CertBuilder.KeyType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.lang.String getAlgorithm(CertBuilder.KeyType keyType)
Get the algorithm matching a keytype
keyType
- public static boolean isKeyType(java.lang.String suspect)
Checks if a String matches a keyType
suspect
-