Package org.mozilla.jss.asn1
Class UniversalString.Template
java.lang.Object
org.mozilla.jss.asn1.CharacterString.Template
org.mozilla.jss.asn1.UniversalString.Template
- All Implemented Interfaces:
ASN1Template
- Enclosing class:
UniversalString
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CharacterStringgenerateInstance(char[] chars) Must be overridden to create an instance of the subclass given a char array.protected CharConverterMust be overridden to return the correct character converter for the subclass.protected TaggetTag()Must be overridden to return the tag for the subclass.booleanDetermines whether the given tag will satisfy this template.protected StringtypeName()Must be overridden to provide the name of the subclass, for including into error messages.Methods inherited from class org.mozilla.jss.asn1.CharacterString.Template
decode, decode
-
Constructor Details
-
Template
public Template()
-
-
Method Details
-
getTag
Description copied from class:CharacterString.TemplateMust be overridden to return the tag for the subclass.- Specified by:
getTagin classCharacterString.Template- Returns:
- Tag.
-
tagMatch
Description copied from interface:ASN1TemplateDetermines whether the given tag will satisfy this template.- Specified by:
tagMatchin interfaceASN1Template- Specified by:
tagMatchin classCharacterString.Template- Parameters:
tag- Tag.- Returns:
- True if the given tag will satisfy this template.
-
getCharConverter
Description copied from class:CharacterString.TemplateMust be overridden to return the correct character converter for the subclass.- Specified by:
getCharConverterin classCharacterString.Template- Returns:
- Character converter.
-
generateInstance
Description copied from class:CharacterString.TemplateMust be overridden to create an instance of the subclass given a char array.- Specified by:
generateInstancein classCharacterString.Template- Parameters:
chars- Input characters.- Returns:
- Character string.
- Throws:
CharConversionException- If an error occurred.
-
typeName
Description copied from class:CharacterString.TemplateMust be overridden to provide the name of the subclass, for including into error messages.- Specified by:
typeNamein classCharacterString.Template- Returns:
- Name of the subclass.
-