Package com.unboundid.asn1
This package contains a number of classes for interacting with ASN.1 BER
elements. ASN.1 (Abstract Syntax Notation One) provides a framework for
representing typed data in a binary form, according to a set of encoding
rules. This implementation uses the Basic Encoding Rules (BER), which is the
mechanism used to represent LDAP messages. It does not provide all standard
types of ASN.1 elements, but includes those needed for LDAP processing,
including Boolean, enumerated, integer, null, octet string, sequence, and set
elements, as well as support for generic element types. It also supports
element types that aren't used in LDAP directly, but may be used in related
areas, like generalized time and UTC time values.
-
Class Summary Class Description ASN1BigInteger This class provides an ASN.1 integer element that is backed by a JavaBigInteger
and whose value can be represented as an integer of any magnitude.ASN1BitString This class provides an ASN.1 bit string element, whose value represents a series of zero or more bits, where each bit is either one or zero.ASN1Boolean This class provides an ASN.1 Boolean element, whose value is a single byte and represents either "TRUE" or "FALSE".ASN1Buffer This class provides a mechanism for writing one or more ASN.1 elements into a byte string buffer.ASN1BufferSequence This class provides a data structure which is used in the course of writing an ASN.1 sequence to an ASN.1 buffer.ASN1BufferSet This class provides a data structure which is used in the course of writing an ASN.1 set to an ASN.1 buffer.ASN1Element This class defines a generic ASN.1 BER element, which has a type and value.ASN1Enumerated This class provides an ASN.1 enumerated element.ASN1GeneralizedTime This class provides an ASN.1 generalized time element, which represents a timestamp in the generalized time format.ASN1IA5String This class provides an ASN.1 IA5 string element that can hold any empty or non-empty string comprised only of the ASCII characters (including ASCII control characters).ASN1Integer This class provides an ASN.1 integer element that is backed by a Javaint
, which is a signed 32-bit value and can represent any integer between -2147483648 and 2147483647.ASN1Long This class provides an ASN.1 integer element that is backed by a Javalong
, which is a signed 64-bit value and can represent any integer between -9223372036854775808 and 9223372036854775807.ASN1Null This class provides an ASN.1 null element, which does not hold a value.ASN1NumericString This class provides an ASN.1 numeric string element that can hold any empty or non-empty string comprised only of the ASCII numeric digits '0' through '9' and the ASCII space.ASN1ObjectIdentifier This class provides an ASN.1 object identifier element, whose value represents a numeric OID.ASN1OctetString This class provides an ASN.1 octet string element, whose value is simply comprised of zero or more bytes.ASN1PrintableString This class provides an ASN.1 printable string element that can hold any empty or non-empty string comprised only of the characters listed below.ASN1Sequence This class provides an ASN.1 sequence element, which is used to hold an ordered set of zero or more other elements (potentially including additional "envelope" element types like other sequences and/or sets).ASN1Set This class provides an ASN.1 set element, which is used to hold a set of zero or more other elements (potentially including additional "envelope" element types like other sequences and/or sets) in which the order of those elements should not be considered significant.ASN1StreamReader This class provides a mechanism for ASN.1 elements (including sequences and sets) from an input stream in a manner that allows the data to be decoded on the fly without constructingASN1Element
objects if they are not needed.ASN1StreamReaderSequence This class provides a data structure which is used in the course of reading an ASN.1 sequence from an ASN.1 stream reader.ASN1StreamReaderSet This class provides a data structure which is used in the course of reading an ASN.1 set from an ASN.1 stream reader.ASN1UTCTime This class provides an ASN.1 UTC time element, which represents a timestamp with a string representation in the format "YYMMDDhhmmssZ".ASN1UTF8String This class provides an ASN.1 UTF-8 string element that can hold any string value that can be represented in the UTF-8 encoding.ASN1Writer This class provides an efficient mechanism for writing ASN.1 elements to output streams. -
Exception Summary Exception Description ASN1Exception This class defines an exception that can be thrown if a problem occurs while interacting with ASN.1 BER elements.