public interface

X500NameStyle

org.bouncycastle.asn1.x500.X500NameStyle
Known Indirect Subclasses

Class Overview

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).

Summary

Public Methods
abstract boolean areEqual(X500Name name1, X500Name name2)
abstract ASN1ObjectIdentifier attrNameToOID(String attrName)
abstract int calculateHashCode(X500Name name)
abstract RDN[] fromString(String dirName)
abstract ASN1Encodable stringToValue(ASN1ObjectIdentifier oid, String value)
Convert the passed in String value into the appropriate ASN.1 encoded object.
abstract String toString(X500Name name)

Public Methods

public abstract boolean areEqual (X500Name name1, X500Name name2)

public abstract ASN1ObjectIdentifier attrNameToOID (String attrName)

public abstract int calculateHashCode (X500Name name)

public abstract RDN[] fromString (String dirName)

public abstract ASN1Encodable stringToValue (ASN1ObjectIdentifier oid, 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.

public abstract String toString (X500Name name)