org.bouncycastle.asn1

Class DERUniversalString

public class DERUniversalString extends ASN1Object implements DERString

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

Constructor Detail

DERUniversalString

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

Method Detail

getInstance

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

Throws: IllegalArgumentException if the object cannot be converted.

getInstance

public static DERUniversalString getInstance(ASN1TaggedObject obj, boolean explicit)
return a Universal 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()