public class

X500Name

extends ASN1Encodable
implements ASN1Choice
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.x500.X500Name

Class Overview

     Name ::= CHOICE {
                       RDNSequence }

     RDNSequence ::= SEQUENCE OF RelativeDistinguishedName

     RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue

     AttributeTypeAndValue ::= SEQUENCE {
                                   type  OBJECT IDENTIFIER,
                                   value ANY }
 

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
X500Name(X500NameStyle style, X500Name name)
X500Name(RDN[] rDNs)
X500Name(X500NameStyle style, RDN[] rDNs)
X500Name(String dirName)
X500Name(X500NameStyle style, String dirName)
Public Methods
boolean equals(Object obj)
test for equality - note: case is ignored.
static X500NameStyle getDefaultStyle()
Return the current default style.
static X500Name getInstance(ASN1TaggedObject obj, boolean explicit)
Return a X509Name based on the passed in tagged object.
static X500Name getInstance(Object obj)
RDN[] getRDNs()
return an array of RDNs in structure order.
RDN[] getRDNs(ASN1ObjectIdentifier oid)
return an array of RDNs containing the attribute type given by OID in structure order.
int hashCode()
static void setDefaultStyle(X500NameStyle style)
Set the default style for X500Name construction.
DERObject toASN1Object()
String toString()
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public X500Name (X500NameStyle style, X500Name name)

public X500Name (RDN[] rDNs)

public X500Name (X500NameStyle style, RDN[] rDNs)

public X500Name (String dirName)

public X500Name (X500NameStyle style, String dirName)

Public Methods

public boolean equals (Object obj)

test for equality - note: case is ignored.

public static X500NameStyle getDefaultStyle ()

Return the current default style.

Returns
  • default style for X500Name construction.

public static X500Name getInstance (ASN1TaggedObject obj, boolean explicit)

Return a X509Name based on the passed in tagged object.

Parameters
obj tag object holding name.
explicit true if explicitly tagged false otherwise.
Returns
  • the X509Name

public static X500Name getInstance (Object obj)

public RDN[] getRDNs ()

return an array of RDNs in structure order.

Returns
  • an array of RDN objects.

public RDN[] getRDNs (ASN1ObjectIdentifier oid)

return an array of RDNs containing the attribute type given by OID in structure order.

Parameters
oid the type OID we are looking for.
Returns
  • an array, possibly zero length, of RDN objects.

public int hashCode ()

public static void setDefaultStyle (X500NameStyle style)

Set the default style for X500Name construction.

Parameters
style an X500NameStyle

public DERObject toASN1Object ()

public String toString ()