|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Encodable
be.cardon.asn1.x509.X509Name
public class X509Name
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type OBJECT IDENTIFIER, value ANY }
Field Summary | |
---|---|
static org.bouncycastle.asn1.DERObjectIdentifier |
BUSINESS_CATEGORY
businessCategory - DirectoryString(SIZE(1..128) |
static org.bouncycastle.asn1.DERObjectIdentifier |
C
country code - StringType(SIZE(2)) |
static org.bouncycastle.asn1.DERObjectIdentifier |
CN
common name - StringType(SIZE(1..64)) |
static org.bouncycastle.asn1.DERObjectIdentifier |
COUNTRY_OF_CITIZENSHIP
RFC 3039 CountryOfCitizenship - PrintableString (SIZE (2)) -- ISO 3166 codes only |
static org.bouncycastle.asn1.DERObjectIdentifier |
COUNTRY_OF_RESIDENCE
RFC 3039 CountryOfResidence - PrintableString (SIZE (2)) -- ISO 3166 codes only |
static org.bouncycastle.asn1.DERObjectIdentifier |
DATE_OF_BIRTH
RFC 3039 DateOfBirth - GeneralizedTime - YYYYMMDD000000Z |
static org.bouncycastle.asn1.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 org.bouncycastle.asn1.DERObjectIdentifier |
DN_QUALIFIER
dnQualifier - DirectoryString(SIZE(1..64) |
static org.bouncycastle.asn1.DERObjectIdentifier |
E
email address in Verisign certificates |
static org.bouncycastle.asn1.DERObjectIdentifier |
EmailAddress
Email address (RSA PKCS#9 extension) - IA5String. |
static org.bouncycastle.asn1.DERObjectIdentifier |
GENDER
RFC 3039 Gender - PrintableString (SIZE(1)) -- "M", "F", "m" or "f" |
static org.bouncycastle.asn1.DERObjectIdentifier |
GENERATION
|
static org.bouncycastle.asn1.DERObjectIdentifier |
GIVENNAME
|
static org.bouncycastle.asn1.DERObjectIdentifier |
INITIALS
|
static org.bouncycastle.asn1.DERObjectIdentifier |
L
locality name - StringType(SIZE(1..64)) |
static org.bouncycastle.asn1.DERObjectIdentifier |
NAME_AT_BIRTH
ISIS-MTT NameAtBirth - DirectoryString(SIZE(1..64) |
static org.bouncycastle.asn1.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 org.bouncycastle.asn1.DERObjectIdentifier |
OU
organizational unit name - StringType(SIZE(1..64)) |
static org.bouncycastle.asn1.DERObjectIdentifier |
PLACE_OF_BIRTH
RFC 3039 PlaceOfBirth - DirectoryString(SIZE(1..128) |
static org.bouncycastle.asn1.DERObjectIdentifier |
POSTAL_ADDRESS
RFC 3039 PostalAddress - SEQUENCE SIZE (1..6) OF DirectoryString(SIZE(1..30)) |
static org.bouncycastle.asn1.DERObjectIdentifier |
POSTAL_CODE
postalCode - DirectoryString(SIZE(1..40) |
static org.bouncycastle.asn1.DERObjectIdentifier |
PSEUDONYM
RFC 3039 Pseudonym - DirectoryString(SIZE(1..64) |
static java.util.Hashtable |
RFC1779Symbols
look up table translating OID values into their common symbols following the convention in RFC 1779 |
static java.util.Hashtable |
RFC2253Symbols
look up table translating OID values into their common symbols following the convention in RFC 2253 |
static org.bouncycastle.asn1.DERObjectIdentifier |
SERIALNUMBER
device serial number name - StringType(SIZE(1..64)) |
static org.bouncycastle.asn1.DERObjectIdentifier |
SN
device serial number name - StringType(SIZE(1..64)) |
static org.bouncycastle.asn1.DERObjectIdentifier |
ST
state, or province name - StringType(SIZE(1..64)) |
static org.bouncycastle.asn1.DERObjectIdentifier |
STREET
street - StringType(SIZE(1..64)) |
static org.bouncycastle.asn1.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 org.bouncycastle.asn1.DERObjectIdentifier |
T
Title |
static org.bouncycastle.asn1.DERObjectIdentifier |
UID
LDAP User id. |
static org.bouncycastle.asn1.DERObjectIdentifier |
UNIQUE_IDENTIFIER
|
static org.bouncycastle.asn1.DERObjectIdentifier |
UnstructuredAddress
|
static org.bouncycastle.asn1.DERObjectIdentifier |
UnstructuredName
more from PKCS#9 |
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable |
---|
BER, DER |
Constructor Summary | |
---|---|
X509Name(org.bouncycastle.asn1.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. lookUp should provide a table of lookups, indexed by lowercase only strings and yielding a DERObjectIdentifier, other than that OID. and numeric oids will be processed automatically. |
|
X509Name(boolean reverse,
java.util.Hashtable lookUp,
java.lang.String dirName,
X509NameEntryConverter converter)
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. lookUp should provide a table of lookups, indexed by lowercase only strings and yielding a DERObjectIdentifier, other than that OID. and numeric oids will be processed automatically. |
|
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(boolean reverse,
java.lang.String dirName,
X509NameEntryConverter converter)
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 with each string value being converted to its associated ASN.1 type using the passed in converter. |
|
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.lang.String dirName,
X509NameEntryConverter converter)
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 with each string value being converted to its associated ASN.1 type using the passed in converter. |
|
X509Name(java.util.Vector ordering,
java.util.Hashtable attributes)
Constructor from a table of attributes with ordering. |
|
X509Name(java.util.Vector ordering,
java.util.Hashtable attributes,
X509DefaultEntryConverter converter)
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. |
|
X509Name(java.util.Vector oids,
java.util.Vector values,
X509NameEntryConverter converter)
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)
|
static X509Name |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj,
boolean explicit)
Return a X509Name based on the passed in tagged object. |
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()
|
org.bouncycastle.asn1.DERObject |
toASN1Object()
|
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 org.bouncycastle.asn1.ASN1Encodable |
---|
getDEREncoded, getDERObject, getEncoded, getEncoded |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.bouncycastle.asn1.DERObjectIdentifier C
public static final org.bouncycastle.asn1.DERObjectIdentifier O
public static final org.bouncycastle.asn1.DERObjectIdentifier OU
public static final org.bouncycastle.asn1.DERObjectIdentifier T
public static final org.bouncycastle.asn1.DERObjectIdentifier CN
public static final org.bouncycastle.asn1.DERObjectIdentifier SN
public static final org.bouncycastle.asn1.DERObjectIdentifier STREET
public static final org.bouncycastle.asn1.DERObjectIdentifier SERIALNUMBER
public static final org.bouncycastle.asn1.DERObjectIdentifier L
public static final org.bouncycastle.asn1.DERObjectIdentifier ST
public static final org.bouncycastle.asn1.DERObjectIdentifier SURNAME
public static final org.bouncycastle.asn1.DERObjectIdentifier GIVENNAME
public static final org.bouncycastle.asn1.DERObjectIdentifier INITIALS
public static final org.bouncycastle.asn1.DERObjectIdentifier GENERATION
public static final org.bouncycastle.asn1.DERObjectIdentifier UNIQUE_IDENTIFIER
public static final org.bouncycastle.asn1.DERObjectIdentifier BUSINESS_CATEGORY
public static final org.bouncycastle.asn1.DERObjectIdentifier POSTAL_CODE
public static final org.bouncycastle.asn1.DERObjectIdentifier DN_QUALIFIER
public static final org.bouncycastle.asn1.DERObjectIdentifier PSEUDONYM
public static final org.bouncycastle.asn1.DERObjectIdentifier DATE_OF_BIRTH
public static final org.bouncycastle.asn1.DERObjectIdentifier PLACE_OF_BIRTH
public static final org.bouncycastle.asn1.DERObjectIdentifier GENDER
public static final org.bouncycastle.asn1.DERObjectIdentifier COUNTRY_OF_CITIZENSHIP
public static final org.bouncycastle.asn1.DERObjectIdentifier COUNTRY_OF_RESIDENCE
public static final org.bouncycastle.asn1.DERObjectIdentifier NAME_AT_BIRTH
public static final org.bouncycastle.asn1.DERObjectIdentifier POSTAL_ADDRESS
public static final org.bouncycastle.asn1.DERObjectIdentifier EmailAddress
Note: if you're trying to be ultra orthodox, don't use this! It shouldn't be in here.
public static final org.bouncycastle.asn1.DERObjectIdentifier UnstructuredName
public static final org.bouncycastle.asn1.DERObjectIdentifier UnstructuredAddress
public static final org.bouncycastle.asn1.DERObjectIdentifier E
public static final org.bouncycastle.asn1.DERObjectIdentifier DC
public static final org.bouncycastle.asn1.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 RFC1779Symbols
public static java.util.Hashtable SymbolLookUp
public static java.util.Hashtable DefaultLookUp
Constructor Detail |
---|
public X509Name(org.bouncycastle.asn1.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 ordering, java.util.Hashtable attributes, X509DefaultEntryConverter converter)
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.
The passed in converter will be used to convert the strings into their ASN.1 counterparts.
public X509Name(java.util.Vector oids, java.util.Vector values)
public X509Name(java.util.Vector oids, java.util.Vector values, X509NameEntryConverter converter)
The passed in converter will be used to convert the strings into their ASN.1 counterparts.
public X509Name(java.lang.String dirName)
public X509Name(java.lang.String dirName, X509NameEntryConverter converter)
public X509Name(boolean reverse, java.lang.String dirName)
public X509Name(boolean reverse, java.lang.String dirName, X509NameEntryConverter converter)
public X509Name(boolean reverse, java.util.Hashtable lookUp, java.lang.String dirName)
reverse
- true if we should start scanning from the end (RFC 2553).lookUp
- table of names and their oids.dirName
- the X.500 string to be parsed.public X509Name(boolean reverse, java.util.Hashtable lookUp, java.lang.String dirName, X509NameEntryConverter converter)
reverse
- true if we should start scanning from the end, false otherwise.lookUp
- table of names and oids.dirName
- the string dirNameconverter
- the converter to convert string values into their ASN.1 equivalentsMethod Detail |
---|
public static X509Name getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
obj
- tag object holding name.explicit
- true if explicitly tagged false otherwise.
public static X509Name getInstance(java.lang.Object obj)
public java.util.Vector getOIDs()
public java.util.Vector getValues()
public org.bouncycastle.asn1.DERObject toASN1Object()
toASN1Object
in class org.bouncycastle.asn1.ASN1Encodable
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 org.bouncycastle.asn1.ASN1Encodable
public int hashCode()
hashCode
in class org.bouncycastle.asn1.ASN1Encodable
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |