Package org.apache.harmony.security.asn1
Class ASN1StringType
- java.lang.Object
-
- org.apache.harmony.security.asn1.ASN1Type
-
- org.apache.harmony.security.asn1.ASN1StringType
-
- All Implemented Interfaces:
ASN1Constants
- Direct Known Subclasses:
ASN1BitString,ASN1OctetString,ASN1Time
public abstract class ASN1StringType extends ASN1Type
This class is the super class for all string ASN.1 types- See Also:
- ASN.1
-
-
Field Summary
Fields Modifier and Type Field Description static ASN1StringTypeBMPSTRINGstatic ASN1StringTypeGENERALSTRINGstatic ASN1StringTypeIA5STRINGstatic ASN1StringTypePRINTABLESTRINGstatic ASN1StringTypeTELETEXSTRINGstatic ASN1StringTypeUNIVERSALSTRINGstatic ASN1StringTypeUTF8STRING-
Fields inherited from interface org.apache.harmony.security.asn1.ASN1Constants
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 Summary
Constructors Constructor Description ASN1StringType(int tagNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckTag(int identifier)Tests provided identifier.Objectdecode(BerInputStream in)Decodes ASN.1 type.voidencodeASN(BerOutputStream out)Encodes ASN.1 type.voidencodeContent(BerOutputStream out)ObjectgetDecodedObject(BerInputStream in)Extracts String object from BER input stream.voidsetEncodingContent(BerOutputStream out)
-
-
-
Field Detail
-
BMPSTRING
public static final ASN1StringType BMPSTRING
-
IA5STRING
public static final ASN1StringType IA5STRING
-
GENERALSTRING
public static final ASN1StringType GENERALSTRING
-
PRINTABLESTRING
public static final ASN1StringType PRINTABLESTRING
-
TELETEXSTRING
public static final ASN1StringType TELETEXSTRING
-
UNIVERSALSTRING
public static final ASN1StringType UNIVERSALSTRING
-
UTF8STRING
public static final ASN1StringType UTF8STRING
-
-
Method Detail
-
checkTag
public final boolean checkTag(int identifier)
Tests provided identifier.
-
decode
public Object decode(BerInputStream in) throws IOException
Description copied from class:ASN1TypeDecodes ASN.1 type.- Specified by:
decodein classASN1Type- Throws:
IOException- if an I/O error occurs or the end of the stream is reached
-
getDecodedObject
public Object getDecodedObject(BerInputStream in) throws IOException
Extracts String object from BER input stream.- Overrides:
getDecodedObjectin classASN1Type- Throws:
IOException
-
encodeASN
public void encodeASN(BerOutputStream out)
Description copied from class:ASN1TypeEncodes ASN.1 type.
-
encodeContent
public void encodeContent(BerOutputStream out)
- Specified by:
encodeContentin classASN1Type
-
setEncodingContent
public void setEncodingContent(BerOutputStream out)
- Specified by:
setEncodingContentin classASN1Type
-
-