public abstract class ASN1StringType extends ASN1Type
| Modifier and Type | Field and Description |
|---|---|
static ASN1StringType |
BMPSTRING |
static ASN1StringType |
GENERALSTRING |
static ASN1StringType |
IA5STRING |
static ASN1StringType |
PRINTABLESTRING |
static ASN1StringType |
TELETEXSTRING |
static ASN1StringType |
UNIVERSALSTRING |
static ASN1StringType |
UTF8STRING |
CLASS_APPLICATION, CLASS_CONTEXTSPECIFIC, CLASS_PRIVATE, CLASS_UNIVERSAL, PC_CONSTRUCTED, PC_PRIMITIVE, TAG_ANY, TAG_BITSTRING, TAG_BMPSTRING, TAG_BOOLEAN, TAG_C_BITSTRING, TAG_C_GENERALIZEDTIME, TAG_C_OCTETSTRING, TAG_C_SEQUENCE, TAG_C_SEQUENCEOF, TAG_C_SET, TAG_C_SETOF, TAG_C_UTCTIME, TAG_C_UTF8STRING, TAG_CHOICE, TAG_EMBEDDEDPDV, TAG_ENUM, TAG_EXTERNAL, TAG_GENERALIZEDTIME, TAG_GENERALSTRING, TAG_GRAPHICSTRING, TAG_IA5STRING, TAG_INSTANCEOF, TAG_INTEGER, TAG_ISO646STRING, TAG_NULL, TAG_NUMERICSTRING, TAG_OBJDESCRIPTOR, TAG_OCTETSTRING, TAG_OID, TAG_PRINTABLESTRING, TAG_REAL, TAG_RELATIVEOID, TAG_SEQUENCE, TAG_SEQUENCEOF, TAG_SET, TAG_SETOF, TAG_T61STRING, TAG_TELETEXSTRING, TAG_UNIVERSALSTRING, TAG_UTCTIME, TAG_UTF8STRING, TAG_VIDEOTEXSTRING, TAG_VISIBLESTRING| Constructor and Description |
|---|
ASN1StringType(int tagNumber) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkTag(int identifier)
Tests provided identifier.
|
Object |
decode(BerInputStream in)
Decodes ASN.1 type.
|
void |
encodeASN(BerOutputStream out)
Encodes ASN.1 type.
|
void |
encodeContent(BerOutputStream out) |
Object |
getDecodedObject(BerInputStream in)
Extracts String object from BER input stream.
|
void |
setEncodingContent(BerOutputStream out) |
public static final ASN1StringType BMPSTRING
public static final ASN1StringType IA5STRING
public static final ASN1StringType GENERALSTRING
public static final ASN1StringType PRINTABLESTRING
public static final ASN1StringType TELETEXSTRING
public static final ASN1StringType UNIVERSALSTRING
public static final ASN1StringType UTF8STRING
public final boolean checkTag(int identifier)
public Object decode(BerInputStream in) throws IOException
ASN1Typedecode in class ASN1TypeIOException - if an I/O error occurs or the end of the stream is reachedpublic Object getDecodedObject(BerInputStream in) throws IOException
getDecodedObject in class ASN1TypeIOExceptionpublic void encodeASN(BerOutputStream out)
ASN1Typepublic void encodeContent(BerOutputStream out)
encodeContent in class ASN1Typepublic void setEncodingContent(BerOutputStream out)
setEncodingContent in class ASN1Type