@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum PKCS8PrivateKeyVersion extends java.lang.Enum<PKCS8PrivateKeyVersion>
| Enum Constant and Description |
|---|
V1
The PKCS #8 v1 private key version.
|
V2
The PKCS #8 v2 private key version.
|
| Modifier and Type | Method and Description |
|---|---|
static PKCS8PrivateKeyVersion |
forName(java.lang.String name)
Retrieves the PKCS #8 private key version with the specified name.
|
java.lang.String |
getName()
Retrieves the name for this private key version.
|
static PKCS8PrivateKeyVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PKCS8PrivateKeyVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PKCS8PrivateKeyVersion V1
public static final PKCS8PrivateKeyVersion V2
public static PKCS8PrivateKeyVersion[] values()
for (PKCS8PrivateKeyVersion c : PKCS8PrivateKeyVersion.values()) System.out.println(c);
public static PKCS8PrivateKeyVersion 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 null@NotNull public java.lang.String getName()
@Nullable public static PKCS8PrivateKeyVersion forName(@NotNull java.lang.String name)
name - The name of the PKCS #8 private key version to retrieve. It
must not be null.null if no
such version is defined.