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.
  • Class
    Description
    An ASN.1 class that encodes to nothing, used in the OER library to deal with the Optional type.
    Base class for an ASN.1 ApplicationSpecific object
    Interface to parse ASN.1 ApplicationSpecific objects.
    Base class for BIT STRING objects
    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 External
    Base 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 type
    A basic parser for an OCTET STRING object
    Stream 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 and SEQUENCE OF constructs.
    A basic parser for a SEQUENCE object
    ASN.1 SET and SET OF constructs.
    A basic parser for a SET object
    A 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 STRINGs
    A parser for indefinite-length OCTET STRINGs.
    A class which writes indefinite and definite length objects.
    Indefinite length SEQUENCE of objects.
    A stream generator for DER SEQUENCEs
    Parser for indefinite-length SEQUENCEs.
    Indefinite length SET and SET 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.
    Tags for encoding BER/DER primitive 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 External
    Parser 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.
    A 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 STRING
    Parser for DER encoded OCTET STRINGS
    Stream that outputs encoding based on distinguished encoding rules.
    DER PrintableString object.
    Definite length SEQUENCE, encoding tells explicit number of bytes that the content of this sequence occupies.
    A stream generator for DER SEQUENCEs
    Parser class for DER SEQUENCEs.
    A DER encoded SET object
    Parser class for DER SETs.
    DER 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 STRING
    Class representing the Definite-Length-type External
    Stream that outputs encoding based on definite length.
    The DLSequence encodes a SEQUENCE using definite length form.
    The DLSet encodes ASN.1 SET value without element ordering, and always using definite length form.
    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.