public class BMPString extends ASN1String
BMPString is a subtype of the UniversalString type and models the Basic Multilingual Plane of ISO/IEC/ITU 10646-1, a two-octet (USC-2) encoding form, which is identical to Unicode 1.1.
When creating a new
BMPString object the value to be represented
has to be supplied as Java
String s = ...; BMPString bmpString = new BMPString(s);Attention: When supplying the string value to be represented, no check is performed if it actually is composed only of characters belonging to BMPString character set! An application itself has to take care for supplying a proper BMPString value.
When calling the
getValue method for getting the inherent string
value from an ASN.1 BMPString instance, a Java object of type
String s = (String)BMPString.getValue();DER en/decoding generally is done by means of the several methods of the
DerCoderclass; decoding alternatively may be performed by using the
asnType, constructed, encode_listener, indefinite_length, isStringType, stream_mode
|Modifier||Constructor and Description|
Creates an empty BMPString.
Creates a new ASN.1 BMPString object for the given String value.
|Modifier and Type||Method and Description|
Returns the value of this BMPString as a String object.
Sets the value of this BMPString.
clone, decode, encode, equals, getByteValue, hashCode, setIgnoreConstructedEncodingForSimpleTypes, setIndefiniteLength, toString
addComponent, addEncodeListener, countComponents, encodeObject, getAsnType, getComponentAt, indefiniteLength, isA, isConstructed, isStringType
public BMPString(java.lang.String value)
Attention: No check is performed if the supplied String value actually is composed only of characters belonging to the BMPString character set! An application itself has to take care for supplying a proper BMPString value.
value- the String value this BMPString object should be initialized with
public java.lang.Object getValue()
public void setValue(java.lang.Object object)
The supplied value has to be a Java object of type
Attention: No check is performed if the supplied String value
actually is composed only of characters belonging to BMPString character
set! An application itself has to take care for supplying a proper BMPString
object- the Java String value to be set for this BMPString