Class C509AttributeType

java.lang.Object
org.bouncycastle.cbor.c509.C509AttributeType

public final class C509AttributeType extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Business Category (2.5.4.15).
    static final int
    Common Name (2.5.4.3).
    static final int
    Country (2.5.4.6).
    static final int
    Directory Management Domain Name (2.5.4.54).
    static final int
    DN Qualifier (2.5.4.46).
    static final int
    Domain Component (0.9.2342.19200300.100.1.25), always IA5String.
    static final int
    Email Address (1.2.840.113549.1.9.1), always IA5String.
    static final int
    Generation Qualifier (2.5.4.44).
    static final int
    Given Name (2.5.4.42).
    static final int
    Initials (2.5.4.43).
    static final int
    Jurisdiction Country Name (1.3.6.1.4.1.311.60.2.1.3).
    static final int
    Jurisdiction Locality Name (1.3.6.1.4.1.311.60.2.1.1).
    static final int
    Jurisdiction State or Province (1.3.6.1.4.1.311.60.2.1.2).
    static final int
    Locality (2.5.4.7).
    static final int
    Name (2.5.4.41).
    static final int
    Organization (2.5.4.10).
    static final int
    Organization Identifier (2.5.4.97).
    static final int
    Organizational Unit (2.5.4.11).
    static final int
    Postal Code (2.5.4.17).
    static final int
    Pseudonym (2.5.4.65).
    static final int
    Serial Number (2.5.4.5).
    static final int
    State or Province (2.5.4.8).
    static final int
    Street Address (2.5.4.9).
    static final int
    Surname (2.5.4.4).
    static final int
    Telephone Number (2.5.4.20).
    static final int
    Title (2.5.4.12).
    static final int
    userid (0.9.2342.19200300.100.1.1).
    static final int
    Unstructured Address (1.2.840.113549.1.9.8).
    static final int
    Unstructured Name (1.2.840.113549.1.9.2).
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static Integer
    getValue(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
    Return the registered value for an attribute type object identifier, or null if it is not registered.
    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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EMAIL_ADDRESS

      public static final int EMAIL_ADDRESS
      Email Address (1.2.840.113549.1.9.1), always IA5String.
      See Also:
    • COMMON_NAME

      public static final int COMMON_NAME
      Common Name (2.5.4.3).
      See Also:
    • SURNAME

      public static final int SURNAME
      Surname (2.5.4.4).
      See Also:
    • SERIAL_NUMBER

      public static final int SERIAL_NUMBER
      Serial Number (2.5.4.5).
      See Also:
    • COUNTRY

      public static final int COUNTRY
      Country (2.5.4.6).
      See Also:
    • LOCALITY

      public static final int LOCALITY
      Locality (2.5.4.7).
      See Also:
    • STATE_OR_PROVINCE

      public static final int STATE_OR_PROVINCE
      State or Province (2.5.4.8).
      See Also:
    • STREET_ADDRESS

      public static final int STREET_ADDRESS
      Street Address (2.5.4.9).
      See Also:
    • ORGANIZATION

      public static final int ORGANIZATION
      Organization (2.5.4.10).
      See Also:
    • ORGANIZATIONAL_UNIT

      public static final int ORGANIZATIONAL_UNIT
      Organizational Unit (2.5.4.11).
      See Also:
    • TITLE

      public static final int TITLE
      Title (2.5.4.12).
      See Also:
    • BUSINESS_CATEGORY

      public static final int BUSINESS_CATEGORY
      Business Category (2.5.4.15).
      See Also:
    • POSTAL_CODE

      public static final int POSTAL_CODE
      Postal Code (2.5.4.17).
      See Also:
    • GIVEN_NAME

      public static final int GIVEN_NAME
      Given Name (2.5.4.42).
      See Also:
    • INITIALS

      public static final int INITIALS
      Initials (2.5.4.43).
      See Also:
    • GENERATION_QUALIFIER

      public static final int GENERATION_QUALIFIER
      Generation Qualifier (2.5.4.44).
      See Also:
    • DN_QUALIFIER

      public static final int DN_QUALIFIER
      DN Qualifier (2.5.4.46).
      See Also:
    • PSEUDONYM

      public static final int PSEUDONYM
      Pseudonym (2.5.4.65).
      See Also:
    • ORGANIZATION_IDENTIFIER

      public static final int ORGANIZATION_IDENTIFIER
      Organization Identifier (2.5.4.97).
      See Also:
    • JURISDICTION_LOCALITY_NAME

      public static final int JURISDICTION_LOCALITY_NAME
      Jurisdiction 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_PROVINCE
      Jurisdiction 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_NAME
      Jurisdiction Country Name (1.3.6.1.4.1.311.60.2.1.3).
      See Also:
    • DOMAIN_COMPONENT

      public static final int DOMAIN_COMPONENT
      Domain Component (0.9.2342.19200300.100.1.25), always IA5String.
      See Also:
    • NAME

      public static final int NAME
      Name (2.5.4.41).
      See Also:
    • TELEPHONE_NUMBER

      public static final int TELEPHONE_NUMBER
      Telephone Number (2.5.4.20).
      See Also:
    • DMD_NAME

      public static final int DMD_NAME
      Directory Management Domain Name (2.5.4.54).
      See Also:
    • UID

      public static final int UID
      userid (0.9.2342.19200300.100.1.1).
      See Also:
    • UNSTRUCTURED_NAME

      public static final int UNSTRUCTURED_NAME
      Unstructured Name (1.2.840.113549.1.9.2).
      See Also:
    • UNSTRUCTURED_ADDRESS

      public static final int UNSTRUCTURED_ADDRESS
      Unstructured 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

      public static Integer getValue(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
      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.