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.
-
ClassDescriptionAn ASN1 class that encodes to nothing, used in the OER library to deal with the Optional type.Base class for an ASN.1 ApplicationSpecific objectInterface to parse ASN.1 ApplicationSpecific objects.Base class for BIT STRING objectsPublic 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 ExternalBase class representing the ASN.1 GeneralizedTime type.Basic class for streaming generators.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.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
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 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.- * UTC time object.An indefinite-length encoding version of an ASN.1 ApplicationSpecific object.A parser for indefinite-length ASN.1 ApplicationSpecific objects.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.Deprecated.Will be removed from public API.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).Parser for indefinite-length tagged objects.A DER encoding version of an application specific object.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 STRINGSDeprecated.Will be removed from public API.DER PrintableString object.Definite length SEQUENCE, encoding tells explicit number of bytes that the content of this sequence occupies.A stream generator for DER SEQUENCEsDeprecated.Use DLSequenceParser insteadA DER encoded SET objectDeprecated.Use DLSetParser insteadDER 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.A DER encoding version of an application specific object.A Definite length BIT STRINGClass 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.ASN.1 uses an EN locale for its internal formatting.Class for breaking up an OID into it's component tokens, ala java.util.StringTokenizer.