Top Description Interfaces Classes
[default module]

Package org.bouncycastle.asn1


A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.

Interface Summary

Modifier and TypeInterface and Description
public interface
ASN1ApplicationSpecificParser

Interface to parse ASN.1 ApplicationSpecific objects.

public interface
ASN1Choice

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.

public interface
ASN1Encodable

Basic interface to produce serialisers for ASN.1 encodings.

public interface
ASN1Encoding

Supported encoding formats.

public interface
ASN1OctetStringParser

A basic parser for an OCTET STRING object

public interface
ASN1SequenceParser

A basic parser for a SEQUENCE object

public interface
ASN1SetParser

A basic parser for a SET object

public interface
ASN1String

General interface implemented by ASN.1 STRING objects for extracting the content String.

public interface
ASN1TaggedObjectParser

Interface for the parsing of a generic tagged ASN.1 object.

public interface
BERTags

Tags for encoding BER/DER primitive objects.

public interface
InMemoryRepresentable

Interface implemented by objects that can be converted from streaming to in-memory objects.

Class Summary

Modifier and TypeClass and Description
public class
ASN1Absent

An ASN.1 class that encodes to nothing, used in the OER library to deal with the Optional type.

public abstract class
ASN1ApplicationSpecific

Base class for an ASN.1 ApplicationSpecific object

public abstract class
ASN1BitString

Base class for BIT STRING objects

public class
ASN1Boolean

Public facade of ASN.1 Boolean data.

public class
ASN1EncodableVector

Mutable class for building ASN.1 constructed objects such as SETs or SEQUENCEs.

public class
ASN1Enumerated

Class representing the ASN.1 ENUMERATED type.

public class
ASN1Exception

Exception thrown in cases of corrupted or unexpected data in a stream.

public abstract class
ASN1External

Class representing the DER-type External

public class
ASN1GeneralizedTime

Base class representing the ASN.1 GeneralizedTime type.

public abstract class
ASN1Generator

Basic class for streaming generators.

public class
ASN1InputStream

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.

public class
ASN1Integer

Class representing the ASN.1 INTEGER type.

public abstract class
ASN1Null

A NULL object - use DERNull.INSTANCE for populating structures.

public abstract class
ASN1Object

Base class for defining an ASN.1 object.

public class
ASN1ObjectIdentifier

Class representing the ASN.1 OBJECT IDENTIFIER type.

public abstract class
ASN1OctetString

Abstract base for the ASN.1 OCTET STRING data type

This supports BER, and DER forms of the data.

public class
ASN1OutputStream

Stream that produces output based on the default encoding for the passed in objects.

public class
ASN1ParsingException

Exception thrown when correctly encoded, but unexpected data is found in a stream while building an object.

public abstract class
ASN1Primitive

Base class for ASN.1 primitive objects.

public abstract class
ASN1Sequence

ASN.1 SEQUENCE and SEQUENCE OF constructs.

public abstract class
ASN1Set

ASN.1 SET and SET OF constructs.

public class
ASN1StreamParser

A parser for ASN.1 streams which also returns, where possible, parsers for the objects it encounters.

public abstract class
ASN1TaggedObject

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).

public class
ASN1UTCTime

- * UTC time object.

public class
BERApplicationSpecific

An indefinite-length encoding version of an ASN.1 ApplicationSpecific object.

public class
BERApplicationSpecificParser

A parser for indefinite-length ASN.1 ApplicationSpecific objects.

pack-priv class
public class
BERGenerator

Base class for generators for indefinite-length structures.

public class
BEROctetString

ASN.1 OctetStrings, with indefinite length rules, and constructed form support.

public class
BEROctetStringGenerator

A generator for indefinite-length OCTET STRINGs

public class
BEROctetStringParser

A parser for indefinite-length OCTET STRINGs.

public class
BEROutputStream

A class which writes indefinite and definite length objects.

public class
BERSequence

Indefinite length SEQUENCE of objects.

public class
BERSequenceGenerator

A stream generator for DER SEQUENCEs

public class
BERSequenceParser

Parser for indefinite-length SEQUENCEs.

public class
BERSet

Indefinite length SET and SET OF constructs.

public class
BERSetParser

Parser for indefinite-length SETs.

public class
BERTaggedObject

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).

public class
BERTaggedObjectParser

Parser for indefinite-length tagged objects.

pack-priv class
pack-priv class
pack-priv class
DefiniteLengthInputStream

Parse data stream of expected ASN.1 data expecting definite-length encoding..

public class
DERApplicationSpecific

A DER encoding version of an application specific object.

public class
DERBitString

A BIT STRING with DER encoding - the first byte contains the count of padding bits included in the byte array's last byte.

public class
DERBMPString

DER BMPString object encodes BMP (Basic Multilingual Plane) subset (aka UCS-2) of UNICODE (ISO 10646) characters in codepoints 0 to 65535.

public class
DERExternal

Class representing the DER-type External

public class
DERExternalParser

Parser DER EXTERNAL tagged objects.

pack-priv class
public class
DERGeneralizedTime

DER Generalized time object.

public class
DERGeneralString

ASN.1 GENERAL-STRING data type.

public abstract class
DERGenerator

Basic class for streaming DER encoding generators.

public class
public class
DERIA5String

DER IA5String object - this is a ISO 646 (ASCII) string encoding code points 0 to 127.

public class
DERNull

A NULL object.

public class
DERNumericString

DER NumericString object - this is an ascii string of characters {0,1,2,3,4,5,6,7,8,9, }.

public class
DEROctetString

Carrier class for a DER encoding OCTET STRING

public class
DEROctetStringParser

Parser for DER encoded OCTET STRINGS

public class
DEROutputStream

Stream that outputs encoding based on distinguished encoding rules.

public class
DERPrintableString

DER PrintableString object.

public class
DERSequence

Definite length SEQUENCE, encoding tells explicit number of bytes that the content of this sequence occupies.

public class
DERSequenceGenerator

A stream generator for DER SEQUENCEs

public class
DERSequenceParser

Parser class for DER SEQUENCEs.

public class
DERSet

A DER encoded SET object

For X.690 syntax rules, see ASN1Set.

public class
DERSetParser

Parser class for DER SETs.

public class
DERT61String

DER T61String (also the teletex string), try not to use this if you don't need to.

public class
DERTaggedObject

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).

public class
DERUniversalString

DER UniversalString object - encodes UNICODE (ISO 10646) characters using 32-bit format.

public class
DERUTCTime

DER UTC time object.

public class
DERUTF8String

DER UTF8String object.

public class
public class
DERVisibleString

DER VisibleString object encoding ISO 646 (ASCII) character code points 32 to 126.

public class
DLApplicationSpecific

A DER encoding version of an application specific object.

public class
DLBitString

A Definite length BIT STRING

public class
DLExternal

Class representing the Definite-Length-type External

public class
DLOutputStream

Stream that outputs encoding based on definite length.

public class
DLSequence

The DLSequence encodes a SEQUENCE using definite length form.

public class
DLSet

The DLSet encodes ASN.1 SET value without element ordering, and always using definite length form.

public class
DLTaggedObject

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).

pack-priv class
pack-priv class
pack-priv class
LazyEncodedSequence

Note

this class is for processing DER/DL encoded sequences only.

pack-priv abstract class
LimitedInputStream

Internal use stream that allows reading of a limited number of bytes from a wrapped stream.

public class
OIDTokenizer

Class for breaking up an OID into it's component tokens, ala java.util.StringTokenizer.

pack-priv class