public class RFC4519Style extends java.lang.Object implements X500NameStyle
Modifier | Constructor and Description |
---|---|
protected |
RFC4519Style() |
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 businessCategory
public static final DERObjectIdentifier c
public static final DERObjectIdentifier cn
public static final DERObjectIdentifier dc
public static final DERObjectIdentifier description
public static final DERObjectIdentifier destinationIndicator
public static final DERObjectIdentifier distinguishedName
public static final DERObjectIdentifier dnQualifier
public static final DERObjectIdentifier enhancedSearchGuide
public static final DERObjectIdentifier facsimileTelephoneNumber
public static final DERObjectIdentifier generationQualifier
public static final DERObjectIdentifier givenName
public static final DERObjectIdentifier houseIdentifier
public static final DERObjectIdentifier initials
public static final DERObjectIdentifier internationalISDNNumber
public static final DERObjectIdentifier l
public static final DERObjectIdentifier member
public static final DERObjectIdentifier name
public static final DERObjectIdentifier o
public static final DERObjectIdentifier ou
public static final DERObjectIdentifier owner
public static final DERObjectIdentifier physicalDeliveryOfficeName
public static final DERObjectIdentifier postalAddress
public static final DERObjectIdentifier postalCode
public static final DERObjectIdentifier postOfficeBox
public static final DERObjectIdentifier preferredDeliveryMethod
public static final DERObjectIdentifier registeredAddress
public static final DERObjectIdentifier roleOccupant
public static final DERObjectIdentifier searchGuide
public static final DERObjectIdentifier seeAlso
public static final DERObjectIdentifier serialNumber
public static final DERObjectIdentifier sn
public static final DERObjectIdentifier st
public static final DERObjectIdentifier street
public static final DERObjectIdentifier telephoneNumber
public static final DERObjectIdentifier teletexTerminalIdentifier
public static final DERObjectIdentifier telexNumber
public static final DERObjectIdentifier title
public static final DERObjectIdentifier uid
public static final DERObjectIdentifier uniqueMember
public static final DERObjectIdentifier userPassword
public static final DERObjectIdentifier x121Address
public static final DERObjectIdentifier x500UniqueIdentifier
private static final java.util.Hashtable DefaultSymbols
private static final java.util.Hashtable DefaultLookUp
public ASN1Encodable stringToValue(DERObjectIdentifier oid, java.lang.String value)
X500NameStyle
stringToValue
in interface X500NameStyle
oid
- the OID associated with the value in the DN.value
- the value of the particular DN component.public java.lang.String oidToDisplayName(DERObjectIdentifier oid)
X500NameStyle
oidToDisplayName
in interface X500NameStyle
oid
- the OID of interest.public java.lang.String[] oidToAttrNames(DERObjectIdentifier oid)
X500NameStyle
oidToAttrNames
in interface X500NameStyle
oid
- the OID of interest.public DERObjectIdentifier attrNameToOID(java.lang.String attrName)
X500NameStyle
attrNameToOID
in interface X500NameStyle
attrName
- the string to match.public boolean areEqual(X500Name name1, X500Name name2)
X500NameStyle
areEqual
in interface X500NameStyle
name1
- first name for comparison.name2
- second name for comparison.public RDN[] fromString(java.lang.String dirName)
X500NameStyle
fromString
in interface X500NameStyle
dirName
- the String representation.public int calculateHashCode(X500Name name)
X500NameStyle
calculateHashCode
in interface X500NameStyle
name
- the name the hashCode is required for.private int calcHashCode(ASN1Encodable enc)
public java.lang.String toString(X500Name name)
X500NameStyle
toString
in interface X500NameStyle
name
- the name to convert.Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.