Package org.bouncycastle.asn1
package org.bouncycastle.asn1
A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
-
ClassDescriptionBase class for an ASN.1 ApplicationSpecific objectDeprecated.Base class for BIT STRING objectsA basic parser for a BIT STRING objectASN.1 BMPString object encodes BMP (Basic Multilingual Plane) subset (aka UCS-2) of UNICODE (ISO 10646) characters in codepoints 0 to 65535.Public facade of ASN.1 Boolean data.Marker interface for CHOICE objects - if you implement this in a role your own object any attempt to tag the object implicitly will convert the tag to an explicit one as the encoding rules require.Basic interface to produce serialisers for ASN.1 encodings.Mutable class for building ASN.1 constructed objects such as SETs or SEQUENCEs.Supported encoding formats.Class representing the ASN.1 ENUMERATED type.Exception thrown in cases of corrupted or unexpected data in a stream.Class representing the DER-type ExternalParser DER EXTERNAL tagged objects.Base class representing the ASN.1 GeneralizedTime type.ASN.1 GENERAL-STRING data type.Basic class for streaming generators.ASN.1 IA5String object - this is a ISO 646 (ASCII) string encoding code points 0 to 127.A general purpose ASN.1 decoder - note: this class differs from the others in that it returns null after it has read the last object in the stream.Class representing the ASN.1 INTEGER type.A NULL object - use DERNull.INSTANCE for populating structures.NumericString object - this is an ascii string of characters {0,1,2,3,4,5,6,7,8,9, }.Base class for defining an ASN.1 object.Class representing the ASN.1 OBJECT IDENTIFIER type.Abstract base for the ASN.1 OCTET STRING data typeA basic parser for an OCTET STRING objectStream that produces output based on the default encoding for the passed in objects.Exception thrown when correctly encoded, but unexpected data is found in a stream while building an object.Base class for ASN.1 primitive objects.ASN.1 PrintableString object.ASN.1
SEQUENCE
andSEQUENCE OF
constructs.A basic parser for a SEQUENCE objectASN.1SET
andSET OF
constructs.A basic parser for a SET objectA parser for ASN.1 streams which also returns, where possible, parsers for the objects it encounters.General interface implemented by ASN.1 STRING objects for extracting the content String.ASN.1 T61String (also the teletex string), try not to use this if you don't need to.ASN.1 TaggedObject - in ASN.1 notation this is any object preceded by a [n] where n is some number - these are assumed to follow the construction rules (as with sequences).Interface for the parsing of a generic tagged ASN.1 object.ASN.1 UniversalString object - encodes UNICODE (ISO 10646) characters using 32-bit format.- * UTC time object.ASN.1 VisibleString object encoding ISO 646 (ASCII) character code points 32 to 126.Deprecated.Will be removed.Deprecated.A parser for indefinite-length BIT STRINGs.Base class for generators for indefinite-length structures.ASN.1 OctetStrings, with indefinite length rules, and constructed form support.A generator for indefinite-length OCTET STRINGsA parser for indefinite-length OCTET STRINGs.Indefinite length SEQUENCE of objects.A stream generator for DER SEQUENCEsParser for indefinite-length SEQUENCEs.Indefinite lengthSET
andSET OF
constructs.Parser for indefinite-length SETs.BER TaggedObject - in ASN.1 notation this is any object preceded by a [n] where n is some number - these are assumed to follow the construction rules (as with sequences).Deprecated.Will be made non-public.Deprecated.Will be removed.A BIT STRING with DER encoding - the first byte contains the count of padding bits included in the byte array's last byte.DER BMPString object encodes BMP (Basic Multilingual Plane) subset (aka UCS-2) of UNICODE (ISO 10646) characters in codepoints 0 to 65535.Class representing the DER-type ExternalParser DER EXTERNAL tagged objects.DER Generalized time object.ASN.1 GENERAL-STRING data type.Basic class for streaming DER encoding generators.DER IA5String object - this is a ISO 646 (ASCII) string encoding code points 0 to 127.An ASN.1 DER NULL object.DER NumericString object - this is an ascii string of characters {0,1,2,3,4,5,6,7,8,9, }.Carrier class for a DER encoding OCTET STRINGParser for DER encoded OCTET STRINGSDER PrintableString object.Definite length SEQUENCE, encoding tells explicit number of bytes that the content of this sequence occupies.A stream generator for DER SEQUENCEsA DER encoded SET objectDER T61String (also the teletex string), try not to use this if you don't need to.DER TaggedObject - in ASN.1 notation this is any object preceded by a [n] where n is some number - these are assumed to follow the construction rules (as with sequences).DER UniversalString object - encodes UNICODE (ISO 10646) characters using 32-bit format.DER UTC time object.DER UTF8String object.DER VisibleString object encoding ISO 646 (ASCII) character code points 32 to 126.Deprecated.Will be removed.A Definite length BIT STRINGParser for a DL encoded BIT STRING.Class representing the Definite-Length-type ExternalThe DLSequence encodes a SEQUENCE using definite length form.Parser class for DL SEQUENCEs.The DLSet encodes ASN.1 SET value without element ordering, and always using definite length form.Parser class for DL SETs.Definite Length TaggedObject - in ASN.1 notation this is any object preceded by a [n] where n is some number - these are assumed to follow the construction rules (as with sequences).Interface implemented by objects that can be converted from streaming to in-memory objects.Class for breaking up an OID into it's component tokens, ala java.util.StringTokenizer.
ASN1TaggedObjectParser
withtag class
ofBERTags.APPLICATION
instead.