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