Class CertificateInfo.X500Name

java.lang.Object
com.itextpdf.signatures.CertificateInfo.X500Name
Enclosing class:
CertificateInfo

public static class CertificateInfo.X500Name extends Object
Class that holds an X509 name.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    C
    Country code - StringType(SIZE(2)).
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    CN
    Common name - StringType(SIZE(1..64)).
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    DC
    Object identifier.
    static final MapString>
    A Map with default symbols.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    E
    Email address in Verisign certificates.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    Email address (RSA PKCS#9 extension) - IA5String.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    Naming attribute of type X520name.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    Naming attribute of type X520name.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    Naming attribute of type X520name.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    L
    Locality name - StringType(SIZE(1..64)).
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    O
    Organization - StringType(SIZE(1..64)).
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    OU
    Organizational unit name - StringType(SIZE(1..64)).
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    SN
    Device serial number name - StringType(SIZE(1..64)).
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    ST
    State, or province name - StringType(SIZE(1..64)).
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    Naming attribute of type X520name.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    T
    Title.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    UID
    LDAP User id.
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
    Naming attribute of type X520name.
    A Map with values.
  • Constructor Summary

    Constructors
    Constructor
    Description
    X500Name(String dirName)
    Constructs an X509 name.
    X500Name(org.bouncycastle.asn1.ASN1Sequence seq)
    Constructs an X509 name.
  • Method Summary

    Modifier and Type
    Method
    Description
    getField(String name)
    Gets the first entry from the field array retrieved from the values Map.
    Gets a field array from the values Map.
    Getter for values.
     

    Methods inherited from class java.lang.Object

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

    • C

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier C
      Country code - StringType(SIZE(2)).
    • O

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier O
      Organization - StringType(SIZE(1..64)).
    • OU

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OU
      Organizational unit name - StringType(SIZE(1..64)).
    • T

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier T
      Title.
    • CN

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier CN
      Common name - StringType(SIZE(1..64)).
    • SN

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SN
      Device serial number name - StringType(SIZE(1..64)).
    • L

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier L
      Locality name - StringType(SIZE(1..64)).
    • ST

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ST
      State, or province name - StringType(SIZE(1..64)).
    • SURNAME

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SURNAME
      Naming attribute of type X520name.
    • GIVENNAME

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier GIVENNAME
      Naming attribute of type X520name.
    • INITIALS

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier INITIALS
      Naming attribute of type X520name.
    • GENERATION

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier GENERATION
      Naming attribute of type X520name.
    • UNIQUE_IDENTIFIER

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UNIQUE_IDENTIFIER
      Naming attribute of type X520name.
    • EmailAddress

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier EmailAddress
      Email address (RSA PKCS#9 extension) - IA5String.

      Note: if you're trying to be ultra orthodox, don't use this! It shouldn't be in here.

    • E

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier E
      Email address in Verisign certificates.
    • DC

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DC
      Object identifier.
    • UID

      public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UID
      LDAP User id.
    • DefaultSymbols

      public static final MapString> DefaultSymbols
      A Map with default symbols.
    • values

      public Map<String,List<String>> values
      A Map with values.
  • Constructor Details

    • X500Name

      public X500Name (org.bouncycastle.asn1.ASN1Sequence seq)
      Constructs an X509 name.
      Parameters:
      seq - an ASN1 Sequence
    • X500Name

      public X500Name (String dirName)
      Constructs an X509 name.
      Parameters:
      dirName - a directory name
  • Method Details

    • getField

      public String getField (String name)
      Gets the first entry from the field array retrieved from the values Map.
      Parameters:
      name - the field name
      Returns:
      the (first) field value
    • getFieldArray

      public List<String> getFieldArray (String name)
      Gets a field array from the values Map.
      Parameters:
      name - The field name
      Returns:
      List
    • getFields

      public Map<String,List<String>> getFields()
      Getter for values.
      Returns:
      Map with the fields of the X509 name
    • toString

      public String toString()
      Overrides:
      toString in class Object