org.mozilla.jss.asn1

Class BMPString

Implemented Interfaces:
ASN1Value

public class BMPString
extends CharacterString
implements ASN1Value

The ASN.1 type BMPString. BMPStrings use the Unicode character set. They are encoded and decoded in big-endian format using two octets.

Nested Class Summary

static class
BMPString.Template

Nested classes/interfaces inherited from class org.mozilla.jss.asn1.CharacterString

CharacterString.Template

Constructor Summary

BMPString(String s)
Creates a new BMPString from a Java String.
BMPString(char[] chars)
Creates a new BMPString from an array of Java characters.

Method Summary

Tag
getTag()
static BMPString.Template
getTemplate()
Returns a singleton instance of BMPString.Template.

Methods inherited from class org.mozilla.jss.asn1.CharacterString

encode, encode, getTag, toCharArray, toString

Constructor Details

BMPString

public BMPString(String s)
            throws CharConversionException
Creates a new BMPString from a Java String.


BMPString

public BMPString(char[] chars)
            throws CharConversionException
Creates a new BMPString from an array of Java characters.

Method Details

getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value
Overrides:
getTag in interface CharacterString


getTemplate

public static BMPString.Template getTemplate()
Returns a singleton instance of BMPString.Template. This is more efficient than creating a new BMPString.Template.