org.bouncycastle.asn1

Class DERUTF8String

public class DERUTF8String extends ASN1Object implements DERString

DER UTF8String object.
Constructor Summary
DERUTF8String(String string)
basic constructor
Method Summary
static DERUTF8StringgetInstance(Object obj)
return an UTF8 string from the passed in object.
static DERUTF8StringgetInstance(ASN1TaggedObject obj, boolean explicit)
return an UTF8 String from a tagged object.
StringgetString()
inthashCode()
StringtoString()

Constructor Detail

DERUTF8String

public DERUTF8String(String string)
basic constructor

Method Detail

getInstance

public static DERUTF8String getInstance(Object obj)
return an UTF8 string from the passed in object.

Throws: IllegalArgumentException if the object cannot be converted.

getInstance

public static DERUTF8String getInstance(ASN1TaggedObject obj, boolean explicit)
return an UTF8 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.

getString

public String getString()

hashCode

public int hashCode()

toString

public String toString()