Bouncy Castle Cryptography 1.46

org.bouncycastle.asn1.x500
Interface X500NameStyle

All Known Implementing Classes:
BCStrictStyle, BCStyle, RFC4519Style

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)
           
 ASN1ObjectIdentifier attrNameToOID(java.lang.String attrName)
           
 int calculateHashCode(X500Name name)
           
 RDN[] fromString(java.lang.String dirName)
           
 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)
           
 

Method Detail

stringToValue

ASN1Encodable stringToValue(ASN1ObjectIdentifier oid,
                            java.lang.String value)
Convert the passed in String value into the appropriate ASN.1 encoded object.

Parameters:
oid - the oid associated with the value in the DN.
value - the value of the particular DN component.
Returns:
the ASN.1 equivalent for the value.

attrNameToOID

ASN1ObjectIdentifier attrNameToOID(java.lang.String attrName)

areEqual

boolean areEqual(X500Name name1,
                 X500Name name2)

fromString

RDN[] fromString(java.lang.String dirName)

calculateHashCode

int calculateHashCode(X500Name name)

toString

java.lang.String toString(X500Name name)

Bouncy Castle Cryptography 1.46