Package se.idsec.utils.printcert.enums
Enum SubjectDnType
- java.lang.Object
-
- java.lang.Enum<SubjectDnType>
-
- se.idsec.utils.printcert.enums.SubjectDnType
-
- All Implemented Interfaces:
Serializable,Comparable<SubjectDnType>
public enum SubjectDnType extends Enum<SubjectDnType>
- Author:
- stefan
-
-
Enum Constant Summary
Enum Constants Enum Constant Description cncountrydateOfBirthdnQualifierdomainComponentemailgivenNamelocalityorganizationIdentifierorgnaizationalUnitNameorgnaizationNamepersonnummerpseudonymserialNumberstatesurnametitleunknown
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeTypeAndValuegetAttribute(String value)StringgetDispName()static SubjectDnTypegetNameTypeForOid(String oidString)static SubjectDnTypegetNameTypeForOid(ASN1ObjectIdentifier oid)StringgetOidString()static SubjectDnTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SubjectDnType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
cn
public static final SubjectDnType cn
-
givenName
public static final SubjectDnType givenName
-
surname
public static final SubjectDnType surname
-
personnummer
public static final SubjectDnType personnummer
-
country
public static final SubjectDnType country
-
locality
public static final SubjectDnType locality
-
state
public static final SubjectDnType state
-
serialNumber
public static final SubjectDnType serialNumber
-
orgnaizationName
public static final SubjectDnType orgnaizationName
-
orgnaizationalUnitName
public static final SubjectDnType orgnaizationalUnitName
-
organizationIdentifier
public static final SubjectDnType organizationIdentifier
-
pseudonym
public static final SubjectDnType pseudonym
-
dnQualifier
public static final SubjectDnType dnQualifier
-
title
public static final SubjectDnType title
-
email
public static final SubjectDnType email
-
dateOfBirth
public static final SubjectDnType dateOfBirth
-
domainComponent
public static final SubjectDnType domainComponent
-
unknown
public static final SubjectDnType unknown
-
-
Method Detail
-
values
public static SubjectDnType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SubjectDnType c : SubjectDnType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubjectDnType valueOf(String name)
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
-
getNameTypeForOid
public static SubjectDnType getNameTypeForOid(ASN1ObjectIdentifier oid)
-
getNameTypeForOid
public static SubjectDnType getNameTypeForOid(String oidString)
-
getOidString
public String getOidString()
-
getDispName
public String getDispName()
-
getAttribute
public AttributeTypeAndValue getAttribute(String value)
-
-