Package org.mozilla.jss.asn1
Class CharacterString
- java.lang.Object
-
- org.mozilla.jss.asn1.CharacterString
-
- All Implemented Interfaces:
ASN1Value
- Direct Known Subclasses:
BMPString,IA5String,PrintableString,TeletexString,UniversalString,UTF8String
public abstract class CharacterString extends java.lang.Object implements ASN1Value
An abstract base class for all character string types in ASN.1.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCharacterString.Template
-
Constructor Summary
Constructors Modifier Constructor Description protectedCharacterString(char[] chars)protectedCharacterString(java.lang.String s)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream ostream)Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicitTag, java.io.OutputStream ostream)Write this value's DER encoding to an output stream using an implicit tag.abstract TaggetTag()Returns the base tag for this type, not counting any tags that may be imposed on it by its context.char[]toCharArray()Converts this ASN.1 character string to an array of Java characters.java.lang.StringtoString()Converts this ASN.1 character string to a Java String.
-
-
-
Method Detail
-
getTag
public abstract Tag getTag()
Description copied from interface:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context.
-
toString
public java.lang.String toString()
Converts this ASN.1 character string to a Java String.- Overrides:
toStringin classjava.lang.Object- Returns:
- ASN.1 character string as String.
-
toCharArray
public char[] toCharArray()
Converts this ASN.1 character string to an array of Java characters.- Returns:
- ASN.1 character string as character array.
-
encode
public void encode(java.io.OutputStream ostream) throws java.io.IOExceptionDescription copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.
-
-