Class DirectoryString

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x500.DirectoryString
All Implemented Interfaces:
ASN1Choice, ASN1Encodable, ASN1String

public class DirectoryString
extends ASN1Object
implements ASN1Choice, ASN1String
  • Constructor Details

    • DirectoryString

      public DirectoryString​(String string)
  • Method Details

    • getInstance

      public static DirectoryString getInstance​(Object o)
    • getInstance

      public static DirectoryString getInstance​(ASN1TaggedObject o, boolean explicit)
    • getString

      public String getString()
      Specified by:
      getString in interface ASN1String
    • toString

      public String toString()
      Description copied from class: Object
      Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
         getClass().getName() + '@' + Integer.toHexString(hashCode())

      See Writing a useful toString method if you intend implementing your own toString method.

      Overrides:
      toString in class Object
      Returns:
      a printable representation of this object.
    • toASN1Primitive

      public ASN1Primitive toASN1Primitive()
        DirectoryString ::= CHOICE {
          teletexString               TeletexString (SIZE (1..MAX)),
          printableString             PrintableString (SIZE (1..MAX)),
          universalString             UniversalString (SIZE (1..MAX)),
          utf8String                  UTF8String (SIZE (1..MAX)),
          bmpString                   BMPString (SIZE (1..MAX))  }
       
      Specified by:
      toASN1Primitive in interface ASN1Encodable
      Specified by:
      toASN1Primitive in class ASN1Object