public class BCStyle extends AbstractX500NameStyle
Modifier and Type | Field and Description |
---|---|
static ASN1ObjectIdentifier |
BUSINESS_CATEGORY
businessCategory - DirectoryString(SIZE(1..128)
|
static ASN1ObjectIdentifier |
C
country code - StringType(SIZE(2))
|
static ASN1ObjectIdentifier |
CN
common name - StringType(SIZE(1..64))
|
static ASN1ObjectIdentifier |
COUNTRY_OF_CITIZENSHIP
RFC 3039 CountryOfCitizenship - PrintableString (SIZE (2)) -- ISO 3166
codes only
|
static ASN1ObjectIdentifier |
COUNTRY_OF_RESIDENCE
RFC 3039 CountryOfResidence - PrintableString (SIZE (2)) -- ISO 3166
codes only
|
static ASN1ObjectIdentifier |
DATE_OF_BIRTH
RFC 3039 DateOfBirth - GeneralizedTime - YYYYMMDD000000Z
|
static ASN1ObjectIdentifier |
DC |
protected java.util.Hashtable |
defaultLookUp |
protected java.util.Hashtable |
defaultSymbols |
static ASN1ObjectIdentifier |
DESCRIPTION |
static ASN1ObjectIdentifier |
DMD_NAME
RFC 2256 dmdName
|
static ASN1ObjectIdentifier |
DN_QUALIFIER
dnQualifier - DirectoryString(SIZE(1..64)
|
static ASN1ObjectIdentifier |
E
email address in Verisign certificates
|
static ASN1ObjectIdentifier |
EmailAddress
Email address (RSA PKCS#9 extension) - IA5String.
|
static ASN1ObjectIdentifier |
GENDER
RFC 3039 Gender - PrintableString (SIZE(1)) -- "M", "F", "m" or "f"
|
static ASN1ObjectIdentifier |
GENERATION |
static ASN1ObjectIdentifier |
GIVENNAME |
static ASN1ObjectIdentifier |
INITIALS |
static X500NameStyle |
INSTANCE
Singleton instance.
|
static ASN1ObjectIdentifier |
L
locality name - StringType(SIZE(1..64))
|
static ASN1ObjectIdentifier |
NAME
id-at-name
|
static ASN1ObjectIdentifier |
NAME_AT_BIRTH
ISIS-MTT NameAtBirth - DirectoryString(SIZE(1..64)
|
static ASN1ObjectIdentifier |
O
organization - StringType(SIZE(1..64))
|
static ASN1ObjectIdentifier |
ORGANIZATION_IDENTIFIER
id-at-organizationIdentifier
|
static ASN1ObjectIdentifier |
OU
organizational unit name - StringType(SIZE(1..64))
|
static ASN1ObjectIdentifier |
PLACE_OF_BIRTH
RFC 3039 PlaceOfBirth - DirectoryString(SIZE(1..128)
|
static ASN1ObjectIdentifier |
POSTAL_ADDRESS
RFC 3039 PostalAddress - SEQUENCE SIZE (1..6) OF
DirectoryString(SIZE(1..30))
|
static ASN1ObjectIdentifier |
POSTAL_CODE
postalCode - DirectoryString(SIZE(1..40)
|
static ASN1ObjectIdentifier |
PSEUDONYM
RFC 3039 Pseudonym - DirectoryString(SIZE(1..64)
|
static ASN1ObjectIdentifier |
ROLE |
static ASN1ObjectIdentifier |
SERIALNUMBER
device serial number name - StringType(SIZE(1..64))
|
static ASN1ObjectIdentifier |
SN
Deprecated.
use SERIALNUMBER or SURNAME
|
static ASN1ObjectIdentifier |
ST
state, or province name - StringType(SIZE(1..64))
|
static ASN1ObjectIdentifier |
STREET
street - StringType(SIZE(1..64))
|
static ASN1ObjectIdentifier |
SURNAME
Naming attributes of type X520name
|
static ASN1ObjectIdentifier |
T
Title
|
static ASN1ObjectIdentifier |
TELEPHONE_NUMBER
id-at-telephoneNumber
|
static ASN1ObjectIdentifier |
UID
LDAP User id.
|
static ASN1ObjectIdentifier |
UNIQUE_IDENTIFIER |
static ASN1ObjectIdentifier |
UnstructuredAddress |
static ASN1ObjectIdentifier |
UnstructuredName
more from PKCS#9
|
Modifier | Constructor and Description |
---|---|
protected |
BCStyle() |
Modifier and Type | Method and Description |
---|---|
ASN1ObjectIdentifier |
attrNameToOID(java.lang.String attrName)
Return the OID associated with the passed in name.
|
protected ASN1Encodable |
encodeStringValue(ASN1ObjectIdentifier oid,
java.lang.String value)
Encoded every value into a UTF8String.
|
RDN[] |
fromString(java.lang.String dirName)
Return an array of RDN generated from the passed in String.
|
java.lang.String[] |
oidToAttrNames(ASN1ObjectIdentifier oid)
Return the acceptable names in a String DN that map to OID.
|
java.lang.String |
oidToDisplayName(ASN1ObjectIdentifier oid)
Return the display name for toString() associated with the OID.
|
java.lang.String |
toString(X500Name name)
Convert the passed in X500Name to a String.
|
areEqual, calculateHashCode, copyHashTable, rdnAreEqual, stringToValue
public static final ASN1ObjectIdentifier C
public static final ASN1ObjectIdentifier O
public static final ASN1ObjectIdentifier OU
public static final ASN1ObjectIdentifier T
public static final ASN1ObjectIdentifier CN
public static final ASN1ObjectIdentifier SN
public static final ASN1ObjectIdentifier STREET
public static final ASN1ObjectIdentifier SERIALNUMBER
public static final ASN1ObjectIdentifier L
public static final ASN1ObjectIdentifier ST
public static final ASN1ObjectIdentifier SURNAME
public static final ASN1ObjectIdentifier GIVENNAME
public static final ASN1ObjectIdentifier INITIALS
public static final ASN1ObjectIdentifier GENERATION
public static final ASN1ObjectIdentifier UNIQUE_IDENTIFIER
public static final ASN1ObjectIdentifier DESCRIPTION
public static final ASN1ObjectIdentifier BUSINESS_CATEGORY
public static final ASN1ObjectIdentifier POSTAL_CODE
public static final ASN1ObjectIdentifier DN_QUALIFIER
public static final ASN1ObjectIdentifier PSEUDONYM
public static final ASN1ObjectIdentifier ROLE
public static final ASN1ObjectIdentifier DATE_OF_BIRTH
public static final ASN1ObjectIdentifier PLACE_OF_BIRTH
public static final ASN1ObjectIdentifier GENDER
public static final ASN1ObjectIdentifier COUNTRY_OF_CITIZENSHIP
public static final ASN1ObjectIdentifier COUNTRY_OF_RESIDENCE
public static final ASN1ObjectIdentifier NAME_AT_BIRTH
public static final ASN1ObjectIdentifier POSTAL_ADDRESS
public static final ASN1ObjectIdentifier DMD_NAME
public static final ASN1ObjectIdentifier TELEPHONE_NUMBER
public static final ASN1ObjectIdentifier NAME
public static final ASN1ObjectIdentifier ORGANIZATION_IDENTIFIER
public static final ASN1ObjectIdentifier EmailAddress
Note: if you're trying to be ultra orthodox, don't use this! It shouldn't be in here.
public static final ASN1ObjectIdentifier UnstructuredName
public static final ASN1ObjectIdentifier UnstructuredAddress
public static final ASN1ObjectIdentifier E
public static final ASN1ObjectIdentifier DC
public static final ASN1ObjectIdentifier UID
public static final X500NameStyle INSTANCE
protected final java.util.Hashtable defaultLookUp
protected final java.util.Hashtable defaultSymbols
protected ASN1Encodable encodeStringValue(ASN1ObjectIdentifier oid, java.lang.String value)
AbstractX500NameStyle
Subclasses should overwrite this method to change the encoding of specific types.
encodeStringValue
in class AbstractX500NameStyle
oid
- the DN oid of the valuevalue
- the String representation of the valuenull
.public java.lang.String oidToDisplayName(ASN1ObjectIdentifier oid)
X500NameStyle
oid
- the OID of interest.public java.lang.String[] oidToAttrNames(ASN1ObjectIdentifier oid)
X500NameStyle
oid
- the OID of interest.public ASN1ObjectIdentifier attrNameToOID(java.lang.String attrName)
X500NameStyle
attrName
- the string to match.public RDN[] fromString(java.lang.String dirName)
X500NameStyle
dirName
- the String representation.public java.lang.String toString(X500Name name)
X500NameStyle
name
- the name to convert.