Package org.mozilla.jss.asn1
Class BMPString
- java.lang.Object
-
- org.mozilla.jss.asn1.CharacterString
-
- org.mozilla.jss.asn1.BMPString
-
- All Implemented Interfaces:
ASN1Value
public class BMPString extends CharacterString
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
Nested Classes Modifier and Type Class Description static class
BMPString.Template
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static BMPString.Template
getTemplate()
Returns a singleton instance of BMPString.Template.-
Methods inherited from class org.mozilla.jss.asn1.CharacterString
encode, encode, toCharArray, toString
-
-
-
-
Constructor Detail
-
BMPString
public BMPString(char[] chars) throws java.io.CharConversionException
Creates a new BMPString from an array of Java characters.- Parameters:
chars
- Input characters.- Throws:
java.io.CharConversionException
- If an error occurred.
-
BMPString
public BMPString(java.lang.String s) throws java.io.CharConversionException
Creates a new BMPString from a Java String.- Parameters:
s
- Input string.- Throws:
java.io.CharConversionException
- If an error occurred.
-
-
Method Detail
-
getTag
public Tag getTag()
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.- Specified by:
getTag
in interfaceASN1Value
- Specified by:
getTag
in classCharacterString
- Returns:
- Base tag.
-
getTemplate
public static BMPString.Template getTemplate()
Returns a singleton instance of BMPString.Template. This is more efficient than creating a new BMPString.Template.- Returns:
- BMSString template.
-
-