Package com.itextpdf.signatures
Class CertificateInfo.X500Name
- java.lang.Object
-
- com.itextpdf.signatures.CertificateInfo.X500Name
-
- Enclosing class:
- CertificateInfo
public static class CertificateInfo.X500Name extends java.lang.Object
Class that holds an X509 name.
-
-
Field Summary
Fields Modifier and Type Field Description static IASN1ObjectIdentifier
C
Country code - StringType(SIZE(2)).static IASN1ObjectIdentifier
CN
Common name - StringType(SIZE(1..64)).static IASN1ObjectIdentifier
DC
Object identifier.static java.util.Map<IASN1ObjectIdentifier,java.lang.String>
DefaultSymbols
A Map with default symbols.static IASN1ObjectIdentifier
E
Email address in Verisign certificates.static IASN1ObjectIdentifier
EmailAddress
Email address (RSA PKCS#9 extension) - IA5String.static IASN1ObjectIdentifier
GENERATION
Naming attribute of type X520name.static IASN1ObjectIdentifier
GIVENNAME
Naming attribute of type X520name.static IASN1ObjectIdentifier
INITIALS
Naming attribute of type X520name.static IASN1ObjectIdentifier
L
Locality name - StringType(SIZE(1..64)).static IASN1ObjectIdentifier
O
Organization - StringType(SIZE(1..64)).static IASN1ObjectIdentifier
OU
Organizational unit name - StringType(SIZE(1..64)).static IASN1ObjectIdentifier
SN
Device serial number name - StringType(SIZE(1..64)).static IASN1ObjectIdentifier
ST
State, or province name - StringType(SIZE(1..64)).static IASN1ObjectIdentifier
SURNAME
Naming attribute of type X520name.static IASN1ObjectIdentifier
T
Title.static IASN1ObjectIdentifier
UID
LDAP User id.static IASN1ObjectIdentifier
UNIQUE_IDENTIFIER
Naming attribute of type X520name.private java.util.Map<java.lang.String,java.util.List<java.lang.String>>
values
A Map with values.
-
Constructor Summary
Constructors Constructor Description X500Name(IASN1Sequence seq)
Constructs an X509 name.X500Name(java.lang.String dirName)
Constructs an X509 name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getField(java.lang.String name)
Gets the first entry from the field array retrieved from the values Map.java.util.List<java.lang.String>
getFieldArray(java.lang.String name)
Gets a field array from the values Map.java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getFields()
Getter for values.java.lang.String
toString()
-
-
-
Field Detail
-
C
public static final IASN1ObjectIdentifier C
Country code - StringType(SIZE(2)).
-
O
public static final IASN1ObjectIdentifier O
Organization - StringType(SIZE(1..64)).
-
OU
public static final IASN1ObjectIdentifier OU
Organizational unit name - StringType(SIZE(1..64)).
-
T
public static final IASN1ObjectIdentifier T
Title.
-
CN
public static final IASN1ObjectIdentifier CN
Common name - StringType(SIZE(1..64)).
-
SN
public static final IASN1ObjectIdentifier SN
Device serial number name - StringType(SIZE(1..64)).
-
L
public static final IASN1ObjectIdentifier L
Locality name - StringType(SIZE(1..64)).
-
ST
public static final IASN1ObjectIdentifier ST
State, or province name - StringType(SIZE(1..64)).
-
SURNAME
public static final IASN1ObjectIdentifier SURNAME
Naming attribute of type X520name.
-
GIVENNAME
public static final IASN1ObjectIdentifier GIVENNAME
Naming attribute of type X520name.
-
INITIALS
public static final IASN1ObjectIdentifier INITIALS
Naming attribute of type X520name.
-
GENERATION
public static final IASN1ObjectIdentifier GENERATION
Naming attribute of type X520name.
-
UNIQUE_IDENTIFIER
public static final IASN1ObjectIdentifier UNIQUE_IDENTIFIER
Naming attribute of type X520name.
-
EmailAddress
public static final IASN1ObjectIdentifier 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 IASN1ObjectIdentifier E
Email address in Verisign certificates.
-
DC
public static final IASN1ObjectIdentifier DC
Object identifier.
-
UID
public static final IASN1ObjectIdentifier UID
LDAP User id.
-
DefaultSymbols
public static final java.util.Map<IASN1ObjectIdentifier,java.lang.String> DefaultSymbols
A Map with default symbols.
-
values
private final java.util.Map<java.lang.String,java.util.List<java.lang.String>> values
A Map with values.
-
-
Constructor Detail
-
X500Name
public X500Name(IASN1Sequence seq)
Constructs an X509 name.- Parameters:
seq
- an ASN1 Sequence
-
X500Name
public X500Name(java.lang.String dirName)
Constructs an X509 name.- Parameters:
dirName
- a directory name
-
-
Method Detail
-
getField
public java.lang.String getField(java.lang.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 java.util.List<java.lang.String> getFieldArray(java.lang.String name)
Gets a field array from the values Map.- Parameters:
name
- The field name- Returns:
- List
-
getFields
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getFields()
Getter for values.- Returns:
- Map with the fields of the X509 name
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-