org.bouncycastle.asn1

Class DERBMPString

public class DERBMPString extends ASN1Object implements DERString

DER BMPString object.
Constructor Summary
DERBMPString(byte[] string)
basic constructor - byte encoded string.
DERBMPString(String string)
basic constructor
Method Summary
protected booleanasn1Equals(DERObject o)
static DERBMPStringgetInstance(Object obj)
return a BMP String from the given object.
static DERBMPStringgetInstance(ASN1TaggedObject obj, boolean explicit)
return a BMP String from a tagged object.
StringgetString()
inthashCode()
StringtoString()

Constructor Detail

DERBMPString

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

DERBMPString

public DERBMPString(String string)
basic constructor

Method Detail

asn1Equals

protected boolean asn1Equals(DERObject o)

getInstance

public static DERBMPString getInstance(Object obj)
return a BMP String from the given object.

Parameters: obj the object we want converted.

Throws: IllegalArgumentException if the object cannot be converted.

getInstance

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