Package org.cryptacular.x509.dn
Enum StandardAttributeType
- All Implemented Interfaces:
Serializable
,Comparable<StandardAttributeType>
,java.lang.constant.Constable
,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:
- RFC 4519 Lightweight Directory Access Protocol (LDAP): Schema for User Applications
- RFC 4524 COSINE LDAP/X.500 Schema
- PKCS #9 v2.0: Selected Object Classes and Attribute Types
- Version:
- $Revision: 2745 $
- Author:
- Middleware Services
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCN - RFC 4519 section 2.3.C - RFC 4519 section 2.2.DESCRIPTION - RFC 4519 section 2.5.DNQUALIFIER - RFC 4519 section 2.8.DC - RFC 4519 section 2.4.Email address - PKCS#9 v2.0 section B.3.5.GenerationQualifier - RFC 4519 section 2.11.GIVENNAME - RFC 4519 section 2.12.INITIALS - RFC 4519 section 2.14.L - RFC 4519 section 2.16.MAIL - RFC 4524 section 2.16.NAME - RFC 4519 section 2.18.OU - RFC 4519 section 2.20.O - RFC 4519 section 2.19.POSTALADDRESS - RFC 4519 section 2.23.POSTALCODE - RFC 4519 section 2.24.POSTOFFICEBOX - RFC 4519 section 2.25.SERIALNUMBER - RFC 4519 section 2.31.ST - RFC 4519 section 2.33.STREET - RFC 4519 section 2.34.SN - RFC 4519 section 2.32.TELEPHONENUMBER - RFC 4519 section 2.35.TITLE - RFC 4519 section 2.38.UNIQUEIDENTIFIER - RFC 4524 section 2.24.UID - RFC 4519 section 2.39. -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeType
Gets the attribute type whose name is the given string.static StandardAttributeType
Gets the attribute type whose OID is the given string.getName()
getOid()
toString()
static StandardAttributeType
Returns the enum constant of this type with the specified name.static StandardAttributeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CommonName
CN - RFC 4519 section 2.3. -
CountryName
C - RFC 4519 section 2.2. -
Description
DESCRIPTION - RFC 4519 section 2.5. -
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. -
OrganizationName
O - RFC 4519 section 2.19. -
OrganizationalUnitName
OU - RFC 4519 section 2.20. -
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. -
TelephoneNumber
TELEPHONENUMBER - RFC 4519 section 2.35. -
Title
TITLE - RFC 4519 section 2.38. -
UniqueIdentifier
UNIQUEIDENTIFIER - RFC 4524 section 2.24. -
UserId
UID - RFC 4519 section 2.39.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getOid
- Specified by:
getOid
in interfaceAttributeType
- Returns:
- OID of attribute type.
-
getName
- Specified by:
getName
in interfaceAttributeType
- Returns:
- Registered short name of attribute type.
-
toString
- Overrides:
toString
in classEnum<StandardAttributeType>
- Returns:
- Attribute name.
-
fromOid
Gets the attribute type whose OID is the given string.- Parameters:
oid
- OID of attribute type to get.- Returns:
- Attribute type whose OID matches given value or none if there is no standard attribute type matching the given OID.
-
fromName
Gets the attribute type whose name is the given string.
-