public enum TBSFieldName extends Enum<TBSFieldName>
| Modifier and Type | Class and Description |
|---|---|
static class |
TBSFieldName.AttributeReferenceClass |
| Enum Constant and Description |
|---|
EXTENSIONS
Certificate extension fields
|
ISSUER
Distinguished name of certificate signer
|
ISSUER_UNIQUE_ID
Certificate issuer unique id
|
SERIAL_NUMBER
Certificate serial number
|
SIGNATURE
Certificate signature algorithm
|
SUBJECT
Distinguished name of the entity associated with the public key
|
SUBJECT_PUBLIC_KEY_INFO
Certificate public key and algorithm
|
SUBJECT_UNIQUE_ID
Certificate subject unique id
|
VALIDITY
Certificate valid to and valid from dates
|
VERSION
Certificate version
|
| Modifier and Type | Method and Description |
|---|---|
static TBSFieldName |
fromToken(String token)
Gets the field name associated with a specific token string.
|
String |
getDisplay()
Gets a human readable display name of the field.
|
Collection<String> |
getFieldTokens()
Some fields may contain complex structure and multiple value may be extracted from the field or may required
additional qualifiers to identify a specific value.
|
Class<? extends TBSField<?>> |
getReferenceClass(String tokenName)
Gets the class implementing the field name.
|
String |
getRfcName()
Gets the name of the field as defined by RFC5280.
|
String |
toString() |
static TBSFieldName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TBSFieldName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TBSFieldName VERSION
public static final TBSFieldName SERIAL_NUMBER
public static final TBSFieldName SIGNATURE
public static final TBSFieldName ISSUER
public static final TBSFieldName VALIDITY
public static final TBSFieldName SUBJECT
public static final TBSFieldName ISSUER_UNIQUE_ID
public static final TBSFieldName SUBJECT_UNIQUE_ID
public static final TBSFieldName EXTENSIONS
public static final TBSFieldName SUBJECT_PUBLIC_KEY_INFO
public static TBSFieldName[] values()
for (TBSFieldName c : TBSFieldName.values()) System.out.println(c);
public static TBSFieldName 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 nullpublic String getRfcName()
public String getDisplay()
public Collection<String> getFieldTokens()
public Class<? extends TBSField<?>> getReferenceClass(String tokenName)
public static TBSFieldName fromToken(String token)
token - The token used to look up the TBSFieldName.public String toString()
toString in class Enum<TBSFieldName>Copyright © 2010–2020 The Direct Project. All rights reserved.