Package org.mozilla.jss.asn1
Class BMPString
java.lang.Object
org.mozilla.jss.asn1.CharacterString
org.mozilla.jss.asn1.BMPString
- All Implemented Interfaces:
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
Nested ClassesModifier and TypeClassDescriptionprivate static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BMPString.BMPConverter
(package private) static final Form
(package private) static final Tag
private static final BMPString.Template
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) CharConverter
Returns the conversion object for converting between an encoded byte array an an array of Java characters.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static BMPString.Template
Returns a singleton instance of BMPString.Template.Methods inherited from class org.mozilla.jss.asn1.CharacterString
encode, encode, toCharArray, toString
-
Field Details
-
converterInstance
-
TAG
-
FORM
-
templateInstance
-
-
Constructor Details
-
BMPString
Creates a new BMPString from an array of Java characters.- Parameters:
chars
- Input characters.- Throws:
CharConversionException
- If an error occurred.
-
BMPString
Creates a new BMPString from a Java String.- Parameters:
s
- Input string.- Throws:
CharConversionException
- If an error occurred.
-
-
Method Details
-
getCharConverter
CharConverter getCharConverter()Returns the conversion object for converting between an encoded byte array an an array of Java characters.- Specified by:
getCharConverter
in classCharacterString
- Returns:
- Character converter.
-
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
Returns a singleton instance of BMPString.Template. This is more efficient than creating a new BMPString.Template.- Returns:
- BMSString template.
-