Class CertificateInfo.X500Name
- Namespace
- iText.Signatures
- Assembly
- itext.sign.dll
Class that holds an X509 name.
public class CertificateInfo.X500Name
- Inheritance
-
CertificateInfo.X500Name
- Inherited Members
Constructors
X500Name(string)
Constructs an X509 name.
public X500Name(string dirName)
Parameters
dirName
stringa directory name
X500Name(IAsn1Sequence)
Constructs an X509 name.
public X500Name(IAsn1Sequence seq)
Parameters
seq
IAsn1Sequencean ASN1 Sequence
Fields
C
Country code - StringType(SIZE(2)).
public static readonly IDerObjectIdentifier C
Field Value
- IDerObjectIdentifier
CN
Common name - StringType(SIZE(1..64)).
public static readonly IDerObjectIdentifier CN
Field Value
- IDerObjectIdentifier
DC
Object identifier.
public static readonly IDerObjectIdentifier DC
Field Value
- IDerObjectIdentifier
DefaultSymbols
A Map with default symbols.
public static readonly IDictionary<IDerObjectIdentifier, string> DefaultSymbols
Field Value
- IDictionary<IDerObjectIdentifier, string>
E
Email address in Verisign certificates.
public static readonly IDerObjectIdentifier E
Field Value
- IDerObjectIdentifier
EmailAddress
Email address (RSA PKCS#9 extension) - IA5String.
public static readonly IDerObjectIdentifier EmailAddress
Field Value
- IDerObjectIdentifier
Remarks
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.GENERATION
Naming attribute of type X520name.
public static readonly IDerObjectIdentifier GENERATION
Field Value
- IDerObjectIdentifier
GIVENNAME
Naming attribute of type X520name.
public static readonly IDerObjectIdentifier GIVENNAME
Field Value
- IDerObjectIdentifier
INITIALS
Naming attribute of type X520name.
public static readonly IDerObjectIdentifier INITIALS
Field Value
- IDerObjectIdentifier
L
Locality name - StringType(SIZE(1..64)).
public static readonly IDerObjectIdentifier L
Field Value
- IDerObjectIdentifier
O
Organization - StringType(SIZE(1..64)).
public static readonly IDerObjectIdentifier O
Field Value
- IDerObjectIdentifier
OU
Organizational unit name - StringType(SIZE(1..64)).
public static readonly IDerObjectIdentifier OU
Field Value
- IDerObjectIdentifier
SN
Device serial number name - StringType(SIZE(1..64)).
public static readonly IDerObjectIdentifier SN
Field Value
- IDerObjectIdentifier
ST
State, or province name - StringType(SIZE(1..64)).
public static readonly IDerObjectIdentifier ST
Field Value
- IDerObjectIdentifier
SURNAME
Naming attribute of type X520name.
public static readonly IDerObjectIdentifier SURNAME
Field Value
- IDerObjectIdentifier
T
Title.
public static readonly IDerObjectIdentifier T
Field Value
- IDerObjectIdentifier
UID
LDAP User id.
public static readonly IDerObjectIdentifier UID
Field Value
- IDerObjectIdentifier
UNIQUE_IDENTIFIER
Naming attribute of type X520name.
public static readonly IDerObjectIdentifier UNIQUE_IDENTIFIER
Field Value
- IDerObjectIdentifier
values
A Map with values.
public IDictionary<string, IList<string>> values
Field Value
Methods
GetField(string)
Gets the first entry from the field array retrieved from the values Map.
public virtual string GetField(string name)
Parameters
name
stringthe field name
Returns
- string
the (first) field value
GetFieldArray(string)
Gets a field array from the values Map.
public virtual IList<string> GetFieldArray(string name)
Parameters
name
stringThe field name
Returns
GetFields()
Getter for values.
public virtual IDictionary<string, IList<string>> GetFields()
Returns
- IDictionary<string, IList<string>>
Map with the fields of the X509 name
ToString()
public override string ToString()