public enum CertificateKeys extends java.lang.Enum<CertificateKeys>
Enum Constant and Description |
---|
C
The country
|
CN
The certificate common name
|
DC
The domain
|
ISSUER
The issuer
|
L
The locality
|
NOT_AFTER
The expiration date
|
NOT_BEFORE
The issued date
|
O
The organization
|
OU
The organizational units
|
OWNER
The owner
|
SERIAL_NUMBER
The serial number
|
ST
The state
|
STREET
The street
|
UID
The user ID
|
UNKNOWN
The unknown key
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
presentationValue
The presentation value
|
Modifier and Type | Method and Description |
---|---|
static CertificateKeys |
getKey(java.lang.String name)
Gets a cretificate's field associated with the given name.
|
java.lang.String |
getPresentationValue()
Returns the field's label.
|
static CertificateKeys |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CertificateKeys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CertificateKeys OWNER
public static final CertificateKeys ISSUER
public static final CertificateKeys NOT_BEFORE
public static final CertificateKeys NOT_AFTER
public static final CertificateKeys SERIAL_NUMBER
public static final CertificateKeys CN
public static final CertificateKeys L
public static final CertificateKeys ST
public static final CertificateKeys O
public static final CertificateKeys OU
public static final CertificateKeys C
public static final CertificateKeys STREET
public static final CertificateKeys DC
public static final CertificateKeys UID
public static final CertificateKeys UNKNOWN
private final java.lang.String presentationValue
public static CertificateKeys[] values()
for (CertificateKeys c : CertificateKeys.values()) System.out.println(c);
public static CertificateKeys 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 java.lang.String getPresentationValue()
public static CertificateKeys getKey(java.lang.String name)
name
- The field's name