Package org.bouncycastle.asn1.x500
Class DirectoryString
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.x500.DirectoryString
-
- All Implemented Interfaces:
ASN1Choice
,ASN1Encodable
,ASN1String
,Encodable
public class DirectoryString extends ASN1Object implements ASN1Choice, ASN1String
The DirectoryString CHOICE object.
-
-
Constructor Summary
Constructors Constructor Description DirectoryString(String string)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectoryString
getInstance(Object o)
static DirectoryString
getInstance(ASN1TaggedObject o, boolean explicit)
String
getString()
Return a Java String representation of this STRING type's content.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)) }String
toString()
-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Constructor Detail
-
DirectoryString
public DirectoryString(String string)
-
-
Method Detail
-
getInstance
public static DirectoryString getInstance(Object o)
-
getInstance
public static DirectoryString getInstance(ASN1TaggedObject o, boolean explicit)
-
getString
public String getString()
Description copied from interface:ASN1String
Return a Java String representation of this STRING type's content.- Specified by:
getString
in interfaceASN1String
- Returns:
- a Java String representation of this STRING.
-
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 interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-
-