ASN1Encodable, ASN1String, Encodablepublic class DERBMPString extends ASN1Primitive implements ASN1String
At ISO-10646:2011 the term "BMP" has been withdrawn, and replaced by term "UCS-2".
| Constructor | Description |
|---|---|
DERBMPString(java.lang.String string) |
Basic constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
asn1Equals(ASN1Primitive o) |
|
static DERBMPString |
getInstance(java.lang.Object obj) |
Return a BMP String from the given object.
|
static DERBMPString |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
Return a BMP String from a tagged object.
|
java.lang.String |
getString() |
Return a Java String representation of this STRING type's content.
|
int |
hashCode() |
|
java.lang.String |
toString() |
getEncoded, getEncoded, hasEncodedTagValue, toASN1Objectequals, fromByteArray, toASN1Primitivepublic DERBMPString(java.lang.String string)
string - a String to wrap as a BMP STRING.public static DERBMPString getInstance(java.lang.Object obj)
obj - the object we want converted.java.lang.IllegalArgumentException - if the object cannot be converted.public static DERBMPString getInstance(ASN1TaggedObject obj, boolean explicit)
obj - the tagged object holding the object we wantexplicit - true if the object is meant to be explicitly
tagged false otherwise.java.lang.IllegalArgumentException - if the tagged object cannot
be converted.public java.lang.String getString()
ASN1StringgetString in interface ASN1Stringpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class ASN1Primitiveprotected boolean asn1Equals(ASN1Primitive o)