|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AttributeType>
edu.vt.middleware.crypt.x509.types.AttributeType
public enum AttributeType
Describes the registered values of AttributeType that may appear in a RelativeDistinguishedName (RDN) as defined in section 2 of RFC 2253.
Enumeration values include attributes likely to appear in an X.509 RDN, which were obtained from the following sources:
| Enum Constant Summary | |
|---|---|
CommonName
CN - RFC 4519 section 2.3. |
|
CountryName
C - RFC 4519 section 2.2. |
|
DnQualifier
DNQUALIFIER - RFC 4519 section 2.8. |
|
DomainComponent
DC - RFC 4519 section 2.4. |
|
EmailAddress
Email address - PKCS#9 v2.0 section B.3.5. |
|
GenerationQualifier
GenerationQualifier - RFC 4519 section 2.11. |
|
GivenName
GIVENNAME - RFC 4519 section 2.12. |
|
Initials
INITIALS - RFC 4519 section 2.14. |
|
LocalityName
L - RFC 4519 section 2.16. |
|
Mail
MAIL - RFC 4524 section 2.16. |
|
Name
NAME - RFC 4519 section 2.18. |
|
OrganizationalUnitName
OU - RFC 4519 section 2.20. |
|
OrganizationName
O - RFC 4519 section 2.19. |
|
PostalAddress
POSTALADDRESS - RFC 4519 section 2.23. |
|
PostalCode
POSTALCODE - RFC 4519 section 2.24. |
|
PostOfficeBox
POSTOFFICEBOX - RFC 4519 section 2.25. |
|
SerialNumber
SERIALNUMBER - RFC 4519 section 2.31. |
|
StateOrProvinceName
ST - RFC 4519 section 2.33. |
|
StreetAddress
STREET - RFC 4519 section 2.34. |
|
Surname
SN - RFC 4519 section 2.32. |
|
Title
TITLE - RFC 4519 section 2.38. |
|
UniqueIdentifier
UNIQUEIDENTIFIER - RFC 4524 section 2.24. |
|
UserId
UID - RFC 4519 section 2.39. |
|
| Method Summary | |
|---|---|
static AttributeType |
fromName(String name)
Gets the attribute type whose name is the given string. |
static AttributeType |
fromOid(String oid)
Gets the attribute type whose OID is the given string. |
String |
getName()
|
String |
getOid()
|
static AttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AttributeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final AttributeType CommonName
public static final AttributeType CountryName
public static final AttributeType DnQualifier
public static final AttributeType DomainComponent
public static final AttributeType EmailAddress
public static final AttributeType GenerationQualifier
public static final AttributeType GivenName
public static final AttributeType Initials
public static final AttributeType LocalityName
public static final AttributeType Mail
public static final AttributeType Name
public static final AttributeType OrganizationName
public static final AttributeType OrganizationalUnitName
public static final AttributeType PostalAddress
public static final AttributeType PostalCode
public static final AttributeType PostOfficeBox
public static final AttributeType SerialNumber
public static final AttributeType StateOrProvinceName
public static final AttributeType StreetAddress
public static final AttributeType Surname
public static final AttributeType Title
public static final AttributeType UniqueIdentifier
public static final AttributeType UserId
| Method Detail |
|---|
public static AttributeType[] values()
for (AttributeType c : AttributeType.values()) System.out.println(c);
public static AttributeType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getOid()
public String getName()
public static AttributeType fromOid(String oid)
oid - OID of attribute type to get.
IllegalArgumentException - On unknown OID.public static AttributeType fromName(String name)
name - Name of attribute to get, where the name is the all-caps
RFC/standard name that would be returned by getName() for the
desired attribute.
getName() property matches the given
value.
IllegalArgumentException - On unknown name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||