public abstract class CharacterString extends java.lang.Object implements ASN1Value
Modifier and Type | Class and Description |
---|---|
static class |
CharacterString.Template |
Modifier | Constructor and Description |
---|---|
protected |
CharacterString(char[] chars) |
protected |
CharacterString(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
abstract Tag |
getTag()
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.String |
toString()
Converts this ASN.1 character string to a Java String.
|
protected CharacterString(char[] chars) throws java.io.CharConversionException
java.io.CharConversionException
protected CharacterString(java.lang.String s) throws java.io.CharConversionException
java.io.CharConversionException
public abstract Tag getTag()
ASN1Value
public java.lang.String toString()
toString
in class java.lang.Object
public char[] toCharArray()
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value