|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface X500NameStyle
It turns out that the number of standard ways the fields in a DN should be encoded into their ASN.1 counterparts is rapidly approaching the number of machines on the internet. By default the X500Name class will produce UTF8Strings in line with the current recommendations (RFC 3280).
Method Summary | |
---|---|
boolean |
areEqual(X500Name name1,
X500Name name2)
Return true if the two names are equal. |
ASN1ObjectIdentifier |
attrNameToOID(java.lang.String attrName)
Return the OID associated with the passed in name. |
int |
calculateHashCode(X500Name name)
Calculate a hashCode for the passed in name. |
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. |
ASN1Encodable |
stringToValue(ASN1ObjectIdentifier 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. |
Method Detail |
---|
ASN1Encodable stringToValue(ASN1ObjectIdentifier oid, java.lang.String value)
oid
- the OID associated with the value in the DN.value
- the value of the particular DN component.
ASN1ObjectIdentifier attrNameToOID(java.lang.String attrName)
attrName
- the string to match.
RDN[] fromString(java.lang.String dirName)
dirName
- the String representation.
boolean areEqual(X500Name name1, X500Name name2)
name1
- first name for comparison.name2
- second name for comparison.
int calculateHashCode(X500Name name)
name
- the name the hashCode is required for.
java.lang.String toString(X500Name name)
name
- the name to convert.
java.lang.String oidToDisplayName(ASN1ObjectIdentifier oid)
oid
- the OID of interest.
java.lang.String[] oidToAttrNames(ASN1ObjectIdentifier oid)
oid
- the OID of interest.
|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |