Class C509AttributeType
java.lang.Object
org.bouncycastle.cbor.c509.C509AttributeType
The C509 RDN Attributes Registry, Section 8.6 of draft-ietf-cose-cbor-encoded-cert-20.
In an int-coded RDN attribute the absolute value of the int is the registered attribute value and the sign carries the DER string type: positive for utf8String, negative for printableString. Attributes whose ASN.1 type is always IA5String (emailAddress and domainComponent) are represented with a non-negative int (Section 3.1.4).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBusiness Category (2.5.4.15).static final intCommon Name (2.5.4.3).static final intCountry (2.5.4.6).static final intDirectory Management Domain Name (2.5.4.54).static final intDN Qualifier (2.5.4.46).static final intDomain Component (0.9.2342.19200300.100.1.25), always IA5String.static final intEmail Address (1.2.840.113549.1.9.1), always IA5String.static final intGeneration Qualifier (2.5.4.44).static final intGiven Name (2.5.4.42).static final intInitials (2.5.4.43).static final intJurisdiction Country Name (1.3.6.1.4.1.311.60.2.1.3).static final intJurisdiction Locality Name (1.3.6.1.4.1.311.60.2.1.1).static final intJurisdiction State or Province (1.3.6.1.4.1.311.60.2.1.2).static final intLocality (2.5.4.7).static final intName (2.5.4.41).static final intOrganization (2.5.4.10).static final intOrganization Identifier (2.5.4.97).static final intOrganizational Unit (2.5.4.11).static final intPostal Code (2.5.4.17).static final intPseudonym (2.5.4.65).static final intSerial Number (2.5.4.5).static final intState or Province (2.5.4.8).static final intStreet Address (2.5.4.9).static final intSurname (2.5.4.4).static final intTelephone Number (2.5.4.20).static final intTitle (2.5.4.12).static final intuserid (0.9.2342.19200300.100.1.1).static final intUnstructured Address (1.2.840.113549.1.9.8).static final intUnstructured Name (1.2.840.113549.1.9.2). -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bouncycastle.asn1.ASN1ObjectIdentifiergetOID(int value) Return the attribute type object identifier a registered value stands for, or null if the value is not registered.static IntegergetValue(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) Return the registered value for an attribute type object identifier, or null if it is not registered.static booleanisAlwaysIA5String(int value) Return true if the registered value is one whose attribute is always of type IA5String (emailAddress, domainComponent), unambiguously represented using a non-negative int per Section 3.1.4.
-
Field Details
-
EMAIL_ADDRESS
public static final int EMAIL_ADDRESSEmail Address (1.2.840.113549.1.9.1), always IA5String.- See Also:
-
COMMON_NAME
public static final int COMMON_NAMECommon Name (2.5.4.3).- See Also:
-
SURNAME
public static final int SURNAMESurname (2.5.4.4).- See Also:
-
SERIAL_NUMBER
public static final int SERIAL_NUMBERSerial Number (2.5.4.5).- See Also:
-
COUNTRY
public static final int COUNTRYCountry (2.5.4.6).- See Also:
-
LOCALITY
public static final int LOCALITYLocality (2.5.4.7).- See Also:
-
STATE_OR_PROVINCE
public static final int STATE_OR_PROVINCEState or Province (2.5.4.8).- See Also:
-
STREET_ADDRESS
public static final int STREET_ADDRESSStreet Address (2.5.4.9).- See Also:
-
ORGANIZATION
public static final int ORGANIZATIONOrganization (2.5.4.10).- See Also:
-
ORGANIZATIONAL_UNIT
public static final int ORGANIZATIONAL_UNITOrganizational Unit (2.5.4.11).- See Also:
-
TITLE
public static final int TITLETitle (2.5.4.12).- See Also:
-
BUSINESS_CATEGORY
public static final int BUSINESS_CATEGORYBusiness Category (2.5.4.15).- See Also:
-
POSTAL_CODE
public static final int POSTAL_CODEPostal Code (2.5.4.17).- See Also:
-
GIVEN_NAME
public static final int GIVEN_NAMEGiven Name (2.5.4.42).- See Also:
-
INITIALS
public static final int INITIALSInitials (2.5.4.43).- See Also:
-
GENERATION_QUALIFIER
public static final int GENERATION_QUALIFIERGeneration Qualifier (2.5.4.44).- See Also:
-
DN_QUALIFIER
public static final int DN_QUALIFIERDN Qualifier (2.5.4.46).- See Also:
-
PSEUDONYM
public static final int PSEUDONYMPseudonym (2.5.4.65).- See Also:
-
ORGANIZATION_IDENTIFIER
public static final int ORGANIZATION_IDENTIFIEROrganization Identifier (2.5.4.97).- See Also:
-
JURISDICTION_LOCALITY_NAME
public static final int JURISDICTION_LOCALITY_NAMEJurisdiction Locality Name (1.3.6.1.4.1.311.60.2.1.1).- See Also:
-
JURISDICTION_STATE_OR_PROVINCE
public static final int JURISDICTION_STATE_OR_PROVINCEJurisdiction State or Province (1.3.6.1.4.1.311.60.2.1.2).- See Also:
-
JURISDICTION_COUNTRY_NAME
public static final int JURISDICTION_COUNTRY_NAMEJurisdiction Country Name (1.3.6.1.4.1.311.60.2.1.3).- See Also:
-
DOMAIN_COMPONENT
public static final int DOMAIN_COMPONENTDomain Component (0.9.2342.19200300.100.1.25), always IA5String.- See Also:
-
NAME
public static final int NAMEName (2.5.4.41).- See Also:
-
TELEPHONE_NUMBER
public static final int TELEPHONE_NUMBERTelephone Number (2.5.4.20).- See Also:
-
DMD_NAME
public static final int DMD_NAMEDirectory Management Domain Name (2.5.4.54).- See Also:
-
UID
public static final int UIDuserid (0.9.2342.19200300.100.1.1).- See Also:
-
UNSTRUCTURED_NAME
public static final int UNSTRUCTURED_NAMEUnstructured Name (1.2.840.113549.1.9.2).- See Also:
-
UNSTRUCTURED_ADDRESS
public static final int UNSTRUCTURED_ADDRESSUnstructured Address (1.2.840.113549.1.9.8).- See Also:
-
-
Method Details
-
getOID
public static org.bouncycastle.asn1.ASN1ObjectIdentifier getOID(int value) Return the attribute type object identifier a registered value stands for, or null if the value is not registered. -
getValue
Return the registered value for an attribute type object identifier, or null if it is not registered. -
isAlwaysIA5String
public static boolean isAlwaysIA5String(int value) Return true if the registered value is one whose attribute is always of type IA5String (emailAddress, domainComponent), unambiguously represented using a non-negative int per Section 3.1.4.
-