|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides a profile to conform to when DNs are being converted into strings and back. The idea being that we'll be able to deal with the number of standard ways the fields in a DN should be encoded into their ASN.1 counterparts - a number that is rapidly approaching the number of machines on the internet.
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 |
public 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.public ASN1ObjectIdentifier attrNameToOID(java.lang.String attrName)
attrName
- the string to match.public RDN[] fromString(java.lang.String dirName)
dirName
- the String representation.public boolean areEqual(X500Name name1, X500Name name2)
name1
- first name for comparison.name2
- second name for comparison.public int calculateHashCode(X500Name name)
name
- the name the hashCode is required for.public java.lang.String toString(X500Name name)
name
- the name to convert.public java.lang.String oidToDisplayName(ASN1ObjectIdentifier oid)
oid
- the OID of interest.public java.lang.String[] oidToAttrNames(ASN1ObjectIdentifier oid)
oid
- the OID of interest.
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |