public abstract class ASN1BMPString extends ASN1Primitive implements ASN1String
At ISO-10646:2011 the term "BMP" has been withdrawn, and replaced by term "UCS-2".
| Modifier and Type | Method and Description |
|---|---|
static ASN1BMPString |
getInstance(ASN1TaggedObject taggedObject,
boolean declaredExplicit)
Return a BMP String from a tagged object.
|
static ASN1BMPString |
getInstance(java.lang.Object obj)
Return a BMP String from the given object.
|
java.lang.String |
getString()
Return a Java String representation of this STRING type's content.
|
static ASN1BMPString |
getTagged(ASN1TaggedObject taggedObject,
boolean declaredExplicit) |
int |
hashCode() |
java.lang.String |
toString() |
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1PrimitivegetEncoded, getEncoded, hasEncodedTagValuepublic static ASN1BMPString getInstance(java.lang.Object obj)
obj - the object we want converted.java.lang.IllegalArgumentException - if the object cannot be converted.public static ASN1BMPString getInstance(ASN1TaggedObject taggedObject, boolean declaredExplicit)
taggedObject - the tagged object holding the object we wantdeclaredExplicit - true if the object is meant to be explicitly tagged false
otherwise.java.lang.IllegalArgumentException - if the tagged object cannot be converted.public static ASN1BMPString getTagged(ASN1TaggedObject taggedObject, boolean declaredExplicit)
public final java.lang.String getString()
ASN1StringgetString in interface ASN1Stringpublic java.lang.String toString()
toString in class java.lang.Objectpublic final int hashCode()
hashCode in class ASN1Primitive