Enum Class SubjectDnAttribute
- All Implemented Interfaces:
Serializable
,Comparable<SubjectDnAttribute>
,Constable
Enumeration of common certificate subject attributes.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCommon name.Country.DN qualifier.Given name.Locality.Organizational unit name.Organization identifier.Organization name.Personal identity number.Pseudonym.Serial number.Surname.Title.Unknown. -
Method Summary
Modifier and TypeMethodDescriptiongetOid()
Gets the object identifier of the attribute.static SubjectDnAttribute
Based on the supplied OID the method returns the corresponding enum.static SubjectDnAttribute
Returns the enum constant of this class with the specified name.static SubjectDnAttribute[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
cn
Common name. -
givenName
Given name. -
surname
Surname. -
personalIdentityNumber
Personal identity number. -
country
Country. -
locality
Locality. -
serialNumber
Serial number. -
organizationName
Organization name. -
organizationalUnitName
Organizational unit name. -
organizationIdentifier
Organization identifier. -
pseudonym
Pseudonym. -
dnQualifier
DN qualifier. -
title
Title. -
unknown
Unknown.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getOid
Gets the object identifier of the attribute.- Returns:
- the object identifier of the attribute
-
getSubjectDnFromOid
Based on the supplied OID the method returns the corresponding enum.- Parameters:
oid
- the object identifier of the attribute- Returns:
- a SubjectDnAttribute enum
-