![]()
|
Bouncy Castle Cryptography 1.11 API Specification: Class X509Name
org.bouncycastle.asn1.x509
|
Field Summary | |
static DERObjectIdentifier |
C
country code - StringType(SIZE(2)) |
static DERObjectIdentifier |
CN
common name - StringType(SIZE(1..64)) |
static DERObjectIdentifier |
DC
|
static DERObjectIdentifier |
EmailAddress
email address (RSA PKCS#9 extension) - IA5String |
static DERObjectIdentifier |
L
locality name - StringType(SIZE(1..64)) |
static DERObjectIdentifier |
O
organization - StringType(SIZE(1..64)) |
static java.util.Hashtable |
OIDLookUp
look up table translating OID values into their common symbols. |
static DERObjectIdentifier |
OU
organizational unit name - StringType(SIZE(1..64)) |
static DERObjectIdentifier |
SN
device serial number name - StringType(SIZE(1..64)) |
static DERObjectIdentifier |
ST
state, or province name - StringType(SIZE(1..64)) |
static java.util.Hashtable |
SymbolLookUp
look up table translating common symbols into their OIDS. |
Constructor Summary | |
X509Name(DERConstructedSequence seq)
Constructor from DERConstructedSequence. |
|
X509Name(java.util.Hashtable attributes)
constructor from a table of attributes. |
|
X509Name(java.lang.String dirName)
takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes. |
|
X509Name(java.util.Vector ordering,
java.util.Hashtable attributes)
constructor from a table of attributes with ordering. |
|
X509Name(java.util.Vector ordering,
java.util.Vector values)
takes two vectors one of the oids and the other of the values. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
DERObject |
getDERObject()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final DERObjectIdentifier C
public static final DERObjectIdentifier O
public static final DERObjectIdentifier OU
public static final DERObjectIdentifier CN
public static final DERObjectIdentifier SN
public static final DERObjectIdentifier L
public static final DERObjectIdentifier ST
public static final DERObjectIdentifier EmailAddress
note: if you're trying to be ultra orthodox, don't use this! It shouldn't be in here.
public static final DERObjectIdentifier DC
public static java.util.Hashtable OIDLookUp
public static java.util.Hashtable SymbolLookUp
Constructor Detail |
public X509Name(DERConstructedSequence seq)
public X509Name(java.util.Hashtable attributes)
it's is assumed the table contains OID/String pairs, and the contents of the table are copied into an internal table as part of the construction process.
Note: if the name you are trying to generate should be following a specific ordering, you should use the constructor with the ordering specified below.
public X509Name(java.util.Vector ordering, java.util.Hashtable attributes)
it's is assumed the table contains OID/String pairs, and the contents of the table are copied into an internal table as part of the construction process. The ordering vector should contain the OIDs in the order they are meant to be encoded or printed in toString.
public X509Name(java.util.Vector ordering, java.util.Vector values)
public X509Name(java.lang.String dirName)
Method Detail |
public DERObject getDERObject()
getDERObject
in interface DEREncodable
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Bouncy Castle Cryptography 1.11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |