public abstract class AbstractX500NameStyle extends java.lang.Object implements X500NameStyle
Constructor and Description |
---|
AbstractX500NameStyle() |
Modifier and Type | Method and Description |
---|---|
boolean |
areEqual(X500Name name1,
X500Name name2)
Return true if the two names are equal.
|
int |
calculateHashCode(X500Name name)
Calculate a hashCode for the passed in name.
|
static java.util.Hashtable |
copyHashTable(java.util.Hashtable paramsMap)
Tool function to shallow copy a Hashtable.
|
protected ASN1Encodable |
encodeStringValue(ASN1ObjectIdentifier oid,
java.lang.String value)
Encoded every value into a UTF8String.
|
protected boolean |
rdnAreEqual(RDN rdn1,
RDN rdn2) |
ASN1Encodable |
stringToValue(ASN1ObjectIdentifier oid,
java.lang.String value)
For all string values starting with '#' is assumed, that these are
already valid ASN.1 objects encoded in hex.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attrNameToOID, fromString, oidToAttrNames, oidToDisplayName, toString
public static java.util.Hashtable copyHashTable(java.util.Hashtable paramsMap)
paramsMap
- table to copypublic int calculateHashCode(X500Name name)
X500NameStyle
calculateHashCode
in interface X500NameStyle
name
- the name the hashCode is required for.public ASN1Encodable stringToValue(ASN1ObjectIdentifier oid, java.lang.String value)
All other string values are send to
encodeStringValue(ASN1ObjectIdentifier, String)
.
encodeStringValue(ASN1ObjectIdentifier, String)
to change the encoding of specific types.stringToValue
in interface X500NameStyle
oid
- the DN name of the value.value
- the String representation of the value.protected ASN1Encodable encodeStringValue(ASN1ObjectIdentifier oid, java.lang.String value)
Subclasses should overwrite this method to change the encoding of specific types.
oid
- the DN oid of the valuevalue
- the String representation of the valuenull
.public boolean areEqual(X500Name name1, X500Name name2)
X500NameStyle
areEqual
in interface X500NameStyle
name1
- first name for comparison.name2
- second name for comparison.