|
Bouncy Castle Cryptography 1.22 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.asn1.x509.X509Name
Field Summary | |
static DERObjectIdentifier |
C
country code - StringType(SIZE(2)) |
static DERObjectIdentifier |
CN
common name - StringType(SIZE(1..64)) |
static DERObjectIdentifier |
DC
|
static java.util.Hashtable |
DefaultLookUp
look up table translating common symbols into their OIDS. |
static boolean |
DefaultReverse
determines whether or not strings should be processed and printed from back to front. |
static java.util.Hashtable |
DefaultSymbols
default look up table translating OID values into their common symbols following the convention in RFC 2253 with a few extras |
static DERObjectIdentifier |
E
email address in Verisign certificates |
static DERObjectIdentifier |
EmailAddress
email address (RSA PKCS#9 extension) - IA5String |
static DERObjectIdentifier |
GENERATION
|
static DERObjectIdentifier |
GIVENNAME
|
static DERObjectIdentifier |
INITIALS
|
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 - this static is scheduled for deletion |
static DERObjectIdentifier |
OU
organizational unit name - StringType(SIZE(1..64)) |
static java.util.Hashtable |
RFC2253Symbols
look up table translating OID values into their common symbols following the convention in RFC 2253 with a few extras |
static DERObjectIdentifier |
SN
device serial number name - StringType(SIZE(1..64)) |
static DERObjectIdentifier |
ST
state, or province name - StringType(SIZE(1..64)) |
static DERObjectIdentifier |
SURNAME
Naming attributes of type X520name |
static java.util.Hashtable |
SymbolLookUp
look up table translating string values into their OIDS - this static is scheduled for deletion |
static DERObjectIdentifier |
T
Title |
static DERObjectIdentifier |
UID
LDAP User id. |
Constructor Summary | |
X509Name(ASN1Sequence seq)
Constructor from ASN1Sequence the principal will be a list of constructed sets, each containing an (OID, String) pair. |
|
X509Name(boolean reverse,
java.util.Hashtable lookUp,
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(boolean reverse,
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.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 oids,
java.util.Vector values)
takes two vectors one of the oids and the other of the values. |
Method Summary | |
boolean |
equals(java.lang.Object _obj)
test for equality - note: case is ignored. |
boolean |
equals(java.lang.Object _obj,
boolean inOrder)
|
DERObject |
getDERObject()
|
static X509Name |
getInstance(ASN1TaggedObject obj,
boolean explicit)
|
static X509Name |
getInstance(java.lang.Object obj)
|
java.util.Vector |
getOIDs()
return a vector of the oids in the name, in the order they were found. |
java.util.Vector |
getValues()
return a vector of the values found in the name, in the order they were found. |
int |
hashCode()
|
java.lang.String |
toString()
|
java.lang.String |
toString(boolean reverse,
java.util.Hashtable oidSymbols)
convert the structure to a string - if reverse is true the oids and values are listed out starting with the last element in the sequence (ala RFC 2253), otherwise the string will begin with the first element of the structure. |
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 T
public static final DERObjectIdentifier CN
public static final DERObjectIdentifier SN
public static final DERObjectIdentifier L
public static final DERObjectIdentifier ST
public static final DERObjectIdentifier SURNAME
public static final DERObjectIdentifier GIVENNAME
public static final DERObjectIdentifier INITIALS
public static final DERObjectIdentifier GENERATION
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 E
public static final DERObjectIdentifier DC
public static final DERObjectIdentifier UID
public static java.util.Hashtable OIDLookUp
public static boolean DefaultReverse
public static java.util.Hashtable DefaultSymbols
public static java.util.Hashtable RFC2253Symbols
public static java.util.Hashtable SymbolLookUp
public static java.util.Hashtable DefaultLookUp
Constructor Detail |
public X509Name(ASN1Sequence 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 oids, java.util.Vector values)
public X509Name(java.lang.String dirName)
public X509Name(boolean reverse, java.lang.String dirName)
public X509Name(boolean reverse, java.util.Hashtable lookUp, java.lang.String dirName)
If reverse is true, create the encoded version of the sequence starting from the last element in the string.
Method Detail |
public static X509Name getInstance(ASN1TaggedObject obj, boolean explicit)
public static X509Name getInstance(java.lang.Object obj)
public java.util.Vector getOIDs()
public java.util.Vector getValues()
public DERObject getDERObject()
getDERObject
in interface DEREncodable
public boolean equals(java.lang.Object _obj, boolean inOrder)
inOrder
- if true the order of both X509 names must be the same,
as well as the values associated with each element.public boolean equals(java.lang.Object _obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString(boolean reverse, java.util.Hashtable oidSymbols)
reverse
- if true start at the end of the sequence and work back.oidSymbols
- look up table strings for oids.public java.lang.String toString()
toString
in class java.lang.Object
|
Bouncy Castle Cryptography 1.22 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |