| 程序包 | 说明 |
|---|---|
| com.jn.langx.asn1.spec |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ASN1BigInteger
This class provides an ASN.1 integer element that is backed by a Java
BigInteger and whose value can be represented as an integer of any
magnitude. |
class |
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.
|
class |
ASN1Boolean
This class provides an ASN.1 Boolean element, whose value is a single byte
and represents either "TRUE" or "FALSE".
|
class |
ASN1Enumerated
This class provides an ASN.1 enumerated element.
|
class |
ASN1GeneralizedTime
This class provides an ASN.1 generalized time element, which represents a
timestamp in the generalized time format.
|
class |
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).
|
class |
ASN1Integer
This class provides an ASN.1 integer element that is backed by a Java
int, which is a signed 32-bit value and can represent any integer
between -2147483648 and 2147483647. |
class |
ASN1Long
This class provides an ASN.1 integer element that is backed by a Java
long, which is a signed 64-bit value and can represent any integer
between -9223372036854775808 and 9223372036854775807. |
class |
ASN1Null
This class provides an ASN.1 null element, which does not hold a value.
|
class |
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.
|
class |
ASN1ObjectIdentifier
This class provides an ASN.1 object identifier element, whose value
represents a numeric OID.
|
class |
ASN1OctetString
This class provides an ASN.1 octet string element, whose value is simply
comprised of zero or more bytes.
|
class |
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.
|
class |
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).
|
class |
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.
|
class |
ASN1UTCTime
This class provides an ASN.1 UTC time element, which represents a timestamp
with a string representation in the format "YYMMDDhhmmssZ".
|
class |
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ASN1Element |
ASN1Element.decode(byte[] elementBytes)
Decodes the content in the provided byte array as an ASN.1 element.
|
ASN1Element[] |
ASN1Set.elements()
Retrieves the set of encapsulated elements held in this set.
|
ASN1Element[] |
ASN1Sequence.elements()
Retrieves the set of encapsulated elements held in this sequence.
|
ASN1Element |
ASN1StreamReader.readElement()
Reads a complete ASN.1 element from the input stream.
|
static ASN1Element |
ASN1Element.readFrom(InputStream inputStream)
Reads an ASN.1 element from the provided input stream.
|
static ASN1Element |
ASN1Element.readFrom(InputStream inputStream,
int maxSize)
Reads an ASN.1 element from the provided input stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ASN1Buffer.addElement(ASN1Element element)
Adds the provided ASN.1 element to this ASN.1 buffer.
|
static ASN1BigInteger |
ASN1BigInteger.decodeAsBigInteger(ASN1Element element)
Decodes the provided ASN.1 element as a big integer element.
|
static ASN1BitString |
ASN1BitString.decodeAsBitString(ASN1Element element)
Decodes the provided ASN.1 element as a bit string element.
|
static ASN1Boolean |
ASN1Boolean.decodeAsBoolean(ASN1Element element)
Decodes the provided ASN.1 element as a Boolean element.
|
static ASN1Enumerated |
ASN1Enumerated.decodeAsEnumerated(ASN1Element element)
Decodes the provided ASN.1 element as an enumerated element.
|
static ASN1GeneralizedTime |
ASN1GeneralizedTime.decodeAsGeneralizedTime(ASN1Element element)
Decodes the provided ASN.1 element as a generalized time element.
|
static ASN1IA5String |
ASN1IA5String.decodeAsIA5String(ASN1Element element)
Decodes the provided ASN.1 element as an IA5 string element.
|
static ASN1Integer |
ASN1Integer.decodeAsInteger(ASN1Element element)
Decodes the provided ASN.1 element as an integer element.
|
static ASN1Long |
ASN1Long.decodeAsLong(ASN1Element element)
Decodes the provided ASN.1 element as a long element.
|
static ASN1Null |
ASN1Null.decodeAsNull(ASN1Element element)
Decodes the provided ASN.1 element as a null element.
|
static ASN1NumericString |
ASN1NumericString.decodeAsNumericString(ASN1Element element)
Decodes the provided ASN.1 element as a numeric string element.
|
static ASN1ObjectIdentifier |
ASN1ObjectIdentifier.decodeAsObjectIdentifier(ASN1Element element)
Decodes the provided ASN.1 element as an object identifier element.
|
static ASN1OctetString |
ASN1OctetString.decodeAsOctetString(ASN1Element element)
Decodes the provided ASN.1 element as an octet string element.
|
static ASN1PrintableString |
ASN1PrintableString.decodeAsPrintableString(ASN1Element element)
Decodes the provided ASN.1 element as a printable string element.
|
static ASN1Sequence |
ASN1Sequence.decodeAsSequence(ASN1Element element)
Decodes the provided ASN.1 element as a sequence element.
|
static ASN1Set |
ASN1Set.decodeAsSet(ASN1Element element)
Decodes the provided ASN.1 element as a set element.
|
static ASN1UTCTime |
ASN1UTCTime.decodeAsUTCTime(ASN1Element element)
Decodes the provided ASN.1 element as a UTC time element.
|
static ASN1UTF8String |
ASN1UTF8String.decodeAsUTF8String(ASN1Element element)
Decodes the provided ASN.1 element as a UTF-8 string element.
|
boolean |
ASN1Element.equalsIgnoreType(ASN1Element element)
Indicates whether the provided ASN.1 element is equal to this element,
ignoring any potential difference in the BER type.
|
static void |
ASN1Writer.writeElement(ASN1Element element,
ByteBuffer buffer)
Appends an encoded representation of the provided ASN.1 element to the
given byte buffer.
|
static void |
ASN1Writer.writeElement(ASN1Element element,
OutputStream outputStream)
Writes an encoded representation of the provided ASN.1 element to the
given output stream.
|
| 构造器和说明 |
|---|
ASN1Sequence(ASN1Element... elements)
Creates a new ASN.1 sequence with the default BER type and the provided set
of elements.
|
ASN1Sequence(byte type,
ASN1Element... elements)
Creates a new ASN.1 sequence with the specified BER type and the provided
set of elements.
|
ASN1Set(ASN1Element... elements)
Creates a new ASN.1 set with the default BER type and the provided set of
elements.
|
ASN1Set(byte type,
ASN1Element... elements)
Creates a new ASN.1 set with the specified BER type and the provided set of
elements.
|
| 构造器和说明 |
|---|
ASN1Sequence(byte type,
Collection<? extends ASN1Element> elements)
Creates a new ASN.1 sequence with the specified BER type and the provided
set of elements.
|
ASN1Sequence(Collection<? extends ASN1Element> elements)
Creates a new ASN.1 sequence with the default BER type and the provided set
of elements.
|
ASN1Set(byte type,
Collection<? extends ASN1Element> elements)
Creates a new ASN.1 set with the specified BER type and the provided set of
elements.
|
ASN1Set(Collection<? extends ASN1Element> elements)
Creates a new ASN.1 set with the default BER type and the provided set of
elements.
|
Copyright © 2022. All rights reserved.