org.bouncycastle.asn1

Class DERVisibleString

public class DERVisibleString extends ASN1Object implements DERString

DER VisibleString object.
Constructor Summary
DERVisibleString(byte[] string)
basic constructor - byte encoded string.
DERVisibleString(String string)
basic constructor
Method Summary
static DERVisibleStringgetInstance(Object obj)
return a Visible String from the passed in object.
static DERVisibleStringgetInstance(ASN1TaggedObject obj, boolean explicit)
return a Visible String from a tagged object.
byte[]getOctets()
StringgetString()
inthashCode()
StringtoString()

Constructor Detail

DERVisibleString

public DERVisibleString(byte[] string)
basic constructor - byte encoded string.

DERVisibleString

public DERVisibleString(String string)
basic constructor

Method Detail

getInstance

public static DERVisibleString getInstance(Object obj)
return a Visible String from the passed in object.

Throws: IllegalArgumentException if the object cannot be converted.

getInstance

public static DERVisibleString getInstance(ASN1TaggedObject obj, boolean explicit)
return a Visible String from a tagged object.

Parameters: obj the tagged object holding the object we want explicit true if the object is meant to be explicitly tagged false otherwise.

Throws: IllegalArgumentException if the tagged object cannot be converted.

getOctets

public byte[] getOctets()

getString

public String getString()

hashCode

public int hashCode()

toString

public String toString()