java.lang.Object | ||
↳ | org.bouncycastle.asn1.ASN1Encodable | |
↳ | org.bouncycastle.asn1.x509.X509Name |
Known Direct Subclasses |
This class is deprecated.
use org.bouncycastle.asn1.x500.X500Name.
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type OBJECT IDENTIFIER, value ANY }
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.asn1.ASN1Encodable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BUSINESS_CATEGORY | businessCategory - DirectoryString(SIZE(1..128) | ||||||||||
C | country code - StringType(SIZE(2)) | ||||||||||
CN | common name - StringType(SIZE(1..64)) | ||||||||||
COUNTRY_OF_CITIZENSHIP | RFC 3039 CountryOfCitizenship - PrintableString (SIZE (2)) -- ISO 3166 codes only | ||||||||||
COUNTRY_OF_RESIDENCE | RFC 3039 CountryOfResidence - PrintableString (SIZE (2)) -- ISO 3166 codes only | ||||||||||
DATE_OF_BIRTH | RFC 3039 DateOfBirth - GeneralizedTime - YYYYMMDD000000Z | ||||||||||
DC | |||||||||||
DMD_NAME | RFC 2256 dmdName | ||||||||||
DN_QUALIFIER | dnQualifier - DirectoryString(SIZE(1..64) | ||||||||||
DefaultLookUp | look up table translating common symbols into their OIDS. | ||||||||||
DefaultReverse | determines whether or not strings should be processed and printed from back to front. | ||||||||||
DefaultSymbols | default look up table translating OID values into their common symbols following the convention in RFC 2253 with a few extras | ||||||||||
E | email address in Verisign certificates | ||||||||||
EmailAddress | Email address (RSA PKCS#9 extension) - IA5String. | ||||||||||
GENDER | RFC 3039 Gender - PrintableString (SIZE(1)) -- "M", "F", "m" or "f" | ||||||||||
GENERATION | |||||||||||
GIVENNAME | |||||||||||
INITIALS | |||||||||||
L | locality name - StringType(SIZE(1..64)) | ||||||||||
NAME | id-at-name | ||||||||||
NAME_AT_BIRTH | ISIS-MTT NameAtBirth - DirectoryString(SIZE(1..64) | ||||||||||
O | organization - StringType(SIZE(1..64)) | ||||||||||
OIDLookUp | This field is deprecated. use DefaultSymbols | ||||||||||
OU | organizational unit name - StringType(SIZE(1..64)) | ||||||||||
PLACE_OF_BIRTH | RFC 3039 PlaceOfBirth - DirectoryString(SIZE(1..128) | ||||||||||
POSTAL_ADDRESS | RFC 3039 PostalAddress - SEQUENCE SIZE (1..6) OF DirectoryString(SIZE(1..30)) | ||||||||||
POSTAL_CODE | postalCode - DirectoryString(SIZE(1..40) | ||||||||||
PSEUDONYM | RFC 3039 Pseudonym - DirectoryString(SIZE(1..64) | ||||||||||
RFC1779Symbols | look up table translating OID values into their common symbols following the convention in RFC 1779 | ||||||||||
RFC2253Symbols | look up table translating OID values into their common symbols following the convention in RFC 2253 | ||||||||||
SERIALNUMBER | device serial number name - StringType(SIZE(1..64)) | ||||||||||
SN | device serial number name - StringType(SIZE(1..64)) | ||||||||||
ST | state, or province name - StringType(SIZE(1..64)) | ||||||||||
STREET | street - StringType(SIZE(1..64)) | ||||||||||
SURNAME | Naming attributes of type X520name | ||||||||||
SymbolLookUp | This field is deprecated. use DefaultLookUp | ||||||||||
T | Title | ||||||||||
TELEPHONE_NUMBER | id-at-telephoneNumber | ||||||||||
UID | LDAP User id. | ||||||||||
UNIQUE_IDENTIFIER | |||||||||||
UnstructuredAddress | |||||||||||
UnstructuredName | more from PKCS#9 |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor from ASN1Sequence
the principal will be a list of constructed sets, each containing an (OID, String) pair.
| |||||||||||
This constructor is deprecated.
use an ordered constructor! The hashtable ordering is rarely correct
| |||||||||||
Constructor from a table of attributes with ordering.
| |||||||||||
Constructor from a table of attributes with ordering.
| |||||||||||
Takes two vectors one of the oids and the other of the values.
| |||||||||||
Takes two vectors one of the oids and the other of the values.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
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.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
test for equality - note: case is ignored.
| |||||||||||
Return a X509Name based on the passed in tagged object.
| |||||||||||
return a vector of the oids in the name, in the order they were found.
| |||||||||||
return a vector of the values found in the name, in the order they
were found, with the DN label corresponding to passed in oid.
| |||||||||||
return a vector of the values found in the name, in the order they
were found.
| |||||||||||
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.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.asn1.ASN1Encodable
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.asn1.DEREncodable
|
businessCategory - DirectoryString(SIZE(1..128)
RFC 3039 CountryOfCitizenship - PrintableString (SIZE (2)) -- ISO 3166 codes only
RFC 3039 CountryOfResidence - PrintableString (SIZE (2)) -- ISO 3166 codes only
RFC 3039 DateOfBirth - GeneralizedTime - YYYYMMDD000000Z
look up table translating common symbols into their OIDS.
determines whether or not strings should be processed and printed from back to front.
default look up table translating OID values into their common symbols following the convention in RFC 2253 with a few extras
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.
RFC 3039 Gender - PrintableString (SIZE(1)) -- "M", "F", "m" or "f"
ISIS-MTT NameAtBirth - DirectoryString(SIZE(1..64)
This field is deprecated.
use DefaultSymbols
look up table translating OID values into their common symbols
RFC 3039 PlaceOfBirth - DirectoryString(SIZE(1..128)
RFC 3039 PostalAddress - SEQUENCE SIZE (1..6) OF DirectoryString(SIZE(1..30))
look up table translating OID values into their common symbols following the convention in RFC 1779
look up table translating OID values into their common symbols following the convention in RFC 2253
device serial number name - StringType(SIZE(1..64))
This field is deprecated.
use DefaultLookUp
look up table translating string values into their OIDS -
Constructor from ASN1Sequence the principal will be a list of constructed sets, each containing an (OID, String) pair.
This constructor is deprecated.
use an ordered constructor! The hashtable ordering is rarely correct
constructor from a table of 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.
Constructor from a table of attributes with ordering.
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.
Constructor from a table of attributes with ordering.
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.
Takes two vectors one of the oids and the other of the values.
Takes two vectors one of the oids and the other of the values.
The passed in converter will be used to convert the strings into their ASN.1 counterparts.
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.
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.
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. If reverse is true, create the encoded version of the sequence starting from the last element in the string.
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. If reverse is true the ASN.1 sequence representing the DN will be built by starting at the end of the string, rather than the start.
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.
If reverse is true, create the encoded version of the sequence
starting from the last element in the string.
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. |
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. The passed in converter is used to convert the
string values to the right of each equals sign to their ASN.1 counterparts.
reverse | true if we should start scanning from the end, false otherwise. |
---|---|
lookUp | table of names and oids. |
dirName | the string dirName |
converter | the converter to convert string values into their ASN.1 equivalents |
inOrder | if true the order of both X509 names must be the same, as well as the values associated with each element. |
---|
Return a X509Name based on the passed in tagged object.
obj | tag object holding name. |
---|---|
explicit | true if explicitly tagged false otherwise. |
return a vector of the values found in the name, in the order they were found, with the DN label corresponding to passed in oid.
return a vector of the values found in the name, in the order they were found.
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. If no string definition for the oid is found in oidSymbols the string value of the oid is added. Two standard symbol tables are provided DefaultSymbols, and RFC2253Symbols as part of this class.
reverse | if true start at the end of the sequence and work back. |
---|---|
oidSymbols | look up table strings for oids. |