public class BCStyle extends java.lang.Object implements X500NameStyle
| Modifier and Type | Field and Description |
|---|---|
static DERObjectIdentifier |
BUSINESS_CATEGORY
businessCategory - DirectoryString(SIZE(1..128)
|
static DERObjectIdentifier |
C
country code - StringType(SIZE(2))
|
static DERObjectIdentifier |
CN
common name - StringType(SIZE(1..64))
|
static DERObjectIdentifier |
COUNTRY_OF_CITIZENSHIP
RFC 3039 CountryOfCitizenship - PrintableString (SIZE (2)) -- ISO 3166
codes only
|
static DERObjectIdentifier |
COUNTRY_OF_RESIDENCE
RFC 3039 CountryOfResidence - PrintableString (SIZE (2)) -- ISO 3166
codes only
|
static DERObjectIdentifier |
DATE_OF_BIRTH
RFC 3039 DateOfBirth - GeneralizedTime - YYYYMMDD000000Z
|
static DERObjectIdentifier |
DC |
private static java.util.Hashtable |
DefaultLookUp
look up table translating common symbols into their OIDS.
|
private 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 |
DMD_NAME
RFC 2256 dmdName
|
static DERObjectIdentifier |
DN_QUALIFIER
dnQualifier - DirectoryString(SIZE(1..64)
|
static DERObjectIdentifier |
E
email address in Verisign certificates
|
static DERObjectIdentifier |
EmailAddress
Email address (RSA PKCS#9 extension) - IA5String.
|
static DERObjectIdentifier |
GENDER
RFC 3039 Gender - PrintableString (SIZE(1)) -- "M", "F", "m" or "f"
|
static DERObjectIdentifier |
GENERATION |
static DERObjectIdentifier |
GIVENNAME |
static DERObjectIdentifier |
INITIALS |
static X500NameStyle |
INSTANCE |
static DERObjectIdentifier |
L
locality name - StringType(SIZE(1..64))
|
static DERObjectIdentifier |
NAME
id-at-name
|
static DERObjectIdentifier |
NAME_AT_BIRTH
ISIS-MTT NameAtBirth - DirectoryString(SIZE(1..64)
|
static DERObjectIdentifier |
O
organization - StringType(SIZE(1..64))
|
static DERObjectIdentifier |
OU
organizational unit name - StringType(SIZE(1..64))
|
static DERObjectIdentifier |
PLACE_OF_BIRTH
RFC 3039 PlaceOfBirth - DirectoryString(SIZE(1..128)
|
static DERObjectIdentifier |
POSTAL_ADDRESS
RFC 3039 PostalAddress - SEQUENCE SIZE (1..6) OF
DirectoryString(SIZE(1..30))
|
static DERObjectIdentifier |
POSTAL_CODE
postalCode - DirectoryString(SIZE(1..40)
|
static DERObjectIdentifier |
PSEUDONYM
RFC 3039 Pseudonym - DirectoryString(SIZE(1..64)
|
static DERObjectIdentifier |
SERIALNUMBER
device serial number 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 DERObjectIdentifier |
STREET
street - StringType(SIZE(1..64))
|
static DERObjectIdentifier |
SURNAME
Naming attributes of type X520name
|
static DERObjectIdentifier |
T
Title
|
static DERObjectIdentifier |
TELEPHONE_NUMBER
id-at-telephoneNumber
|
static DERObjectIdentifier |
UID
LDAP User id.
|
static DERObjectIdentifier |
UNIQUE_IDENTIFIER |
static DERObjectIdentifier |
UnstructuredAddress |
static DERObjectIdentifier |
UnstructuredName
more from PKCS#9
|
| Modifier | Constructor and Description |
|---|---|
protected |
BCStyle() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(X500Name name1,
X500Name name2)
Return true if the two names are equal.
|
DERObjectIdentifier |
attrNameToOID(java.lang.String attrName)
Return the OID associated with the passed in name.
|
private int |
calcHashCode(ASN1Encodable enc) |
int |
calculateHashCode(X500Name name)
Calculate a hashCode for the passed in name.
|
private boolean |
foundMatch(boolean reverse,
RDN rdn,
RDN[] possRDNs) |
RDN[] |
fromString(java.lang.String dirName)
Return an array of RDN generated from the passed in String.
|
java.lang.String[] |
oidToAttrNames(DERObjectIdentifier oid)
Return the acceptable names in a String DN that map to OID.
|
java.lang.String |
oidToDisplayName(DERObjectIdentifier oid)
Return the display name for toString() associated with the OID.
|
protected boolean |
rdnAreEqual(RDN rdn1,
RDN rdn2) |
ASN1Encodable |
stringToValue(DERObjectIdentifier oid,
java.lang.String value)
Convert the passed in String value into the appropriate ASN.1
encoded object.
|
java.lang.String |
toString(X500Name name)
Convert the passed in X500Name to a String.
|
public static final X500NameStyle INSTANCE
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 STREET
public static final DERObjectIdentifier SERIALNUMBER
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 UNIQUE_IDENTIFIER
public static final DERObjectIdentifier BUSINESS_CATEGORY
public static final DERObjectIdentifier POSTAL_CODE
public static final DERObjectIdentifier DN_QUALIFIER
public static final DERObjectIdentifier PSEUDONYM
public static final DERObjectIdentifier DATE_OF_BIRTH
public static final DERObjectIdentifier PLACE_OF_BIRTH
public static final DERObjectIdentifier GENDER
public static final DERObjectIdentifier COUNTRY_OF_CITIZENSHIP
public static final DERObjectIdentifier COUNTRY_OF_RESIDENCE
public static final DERObjectIdentifier NAME_AT_BIRTH
public static final DERObjectIdentifier POSTAL_ADDRESS
public static final DERObjectIdentifier DMD_NAME
public static final DERObjectIdentifier TELEPHONE_NUMBER
public static final DERObjectIdentifier NAME
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 UnstructuredName
public static final DERObjectIdentifier UnstructuredAddress
public static final DERObjectIdentifier E
public static final DERObjectIdentifier DC
public static final DERObjectIdentifier UID
private static final java.util.Hashtable DefaultSymbols
private static final java.util.Hashtable DefaultLookUp
public ASN1Encodable stringToValue(DERObjectIdentifier oid, java.lang.String value)
X500NameStylestringToValue in interface X500NameStyleoid - the OID associated with the value in the DN.value - the value of the particular DN component.public java.lang.String oidToDisplayName(DERObjectIdentifier oid)
X500NameStyleoidToDisplayName in interface X500NameStyleoid - the OID of interest.public java.lang.String[] oidToAttrNames(DERObjectIdentifier oid)
X500NameStyleoidToAttrNames in interface X500NameStyleoid - the OID of interest.public DERObjectIdentifier attrNameToOID(java.lang.String attrName)
X500NameStyleattrNameToOID in interface X500NameStyleattrName - the string to match.public boolean areEqual(X500Name name1, X500Name name2)
X500NameStyleareEqual in interface X500NameStylename1 - first name for comparison.name2 - second name for comparison.public RDN[] fromString(java.lang.String dirName)
X500NameStylefromString in interface X500NameStyledirName - the String representation.public int calculateHashCode(X500Name name)
X500NameStylecalculateHashCode in interface X500NameStylename - the name the hashCode is required for.private int calcHashCode(ASN1Encodable enc)
public java.lang.String toString(X500Name name)
X500NameStyletoString in interface X500NameStylename - the name to convert.Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.