Package org.mozilla.jss.asn1
Class IA5String.Template
java.lang.Object
org.mozilla.jss.asn1.CharacterString.Template
org.mozilla.jss.asn1.IA5String.Template
- All Implemented Interfaces:
ASN1Template
- Enclosing class:
IA5String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CharacterString
generateInstance
(char[] chars) Must be overridden to create an instance of the subclass given a char array.protected CharConverter
Must be overridden to return the correct character converter for the subclass.getTag()
Must be overridden to return the tag for the subclass.boolean
Determines whether the given tag will satisfy this template.protected String
typeName()
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.Template
Must be overridden to return the tag for the subclass.- Specified by:
getTag
in classCharacterString.Template
- Returns:
- Tag.
-
tagMatch
Description copied from interface:ASN1Template
Determines whether the given tag will satisfy this template.- Specified by:
tagMatch
in interfaceASN1Template
- Specified by:
tagMatch
in classCharacterString.Template
- Parameters:
tag
- Tag.- Returns:
- True if the given tag will satisfy this template.
-
getCharConverter
Description copied from class:CharacterString.Template
Must be overridden to return the correct character converter for the subclass.- Specified by:
getCharConverter
in classCharacterString.Template
- Returns:
- Character converter.
-
generateInstance
Description copied from class:CharacterString.Template
Must be overridden to create an instance of the subclass given a char array.- Specified by:
generateInstance
in classCharacterString.Template
- Parameters:
chars
- Input characters.- Returns:
- Character string.
- Throws:
CharConversionException
- If an error occurred.
-
typeName
Description copied from class:CharacterString.Template
Must be overridden to provide the name of the subclass, for including into error messages.- Specified by:
typeName
in classCharacterString.Template
- Returns:
- Name of the subclass.
-