public interface Principal
RFC 2253
.
CN commonName L localityName ST stateOrProvinceName O organizationName OU organizationalUnitName C countryName
Modifier and Type | Field and Description |
---|---|
static int |
FIELD_C
C: Country
|
static int |
FIELD_CN
CN: Common name
|
static int |
FIELD_L
L: Locality
|
static int |
FIELD_O
O: Organization
|
static int |
FIELD_OU
OU: Organizational Unit
|
static int |
FIELD_ST
ST: State or Province
|
Modifier and Type | Method and Description |
---|---|
String |
getValue(int field)
Gets the value of one of the fields.
|
String |
toString()
Gets a string representation of the X.500 distinguished name using the format defined in RFC 2253.
|
static final int FIELD_C
static final int FIELD_CN
static final int FIELD_L
static final int FIELD_O
static final int FIELD_OU
static final int FIELD_ST
String getValue(int field)
field
- One of the 6 well-known fields.IndexOutOfBoundsException
- if field is out of bounds.