| 程序包 | 说明 |
|---|---|
| com.jn.langx.asn1.spec |
| 限定符和类型 | 方法和说明 |
|---|---|
static ASN1Element |
ASN1Element.decode(byte[] elementBytes)
Decodes the content in the provided byte array as an ASN.1 element.
|
ASN1BigInteger |
ASN1Element.decodeAsBigInteger()
Decodes this ASN.1 element as a big integer element.
|
static ASN1BigInteger |
ASN1BigInteger.decodeAsBigInteger(ASN1Element element)
Decodes the provided ASN.1 element as a big integer element.
|
static ASN1BigInteger |
ASN1BigInteger.decodeAsBigInteger(byte[] elementBytes)
Decodes the contents of the provided byte array as a big integer element.
|
ASN1BitString |
ASN1Element.decodeAsBitString()
Decodes this ASN.1 element as a bit string element.
|
static ASN1BitString |
ASN1BitString.decodeAsBitString(ASN1Element element)
Decodes the provided ASN.1 element as a bit string element.
|
static ASN1BitString |
ASN1BitString.decodeAsBitString(byte[] elementBytes)
Decodes the contents of the provided byte array as a bit string element.
|
ASN1Boolean |
ASN1Element.decodeAsBoolean()
Decodes this ASN.1 element as a Boolean element.
|
static ASN1Boolean |
ASN1Boolean.decodeAsBoolean(ASN1Element element)
Decodes the provided ASN.1 element as a Boolean element.
|
static ASN1Boolean |
ASN1Boolean.decodeAsBoolean(byte[] elementBytes)
Decodes the contents of the provided byte array as a Boolean element.
|
ASN1Enumerated |
ASN1Element.decodeAsEnumerated()
Decodes this ASN.1 element as an enumerated element.
|
static ASN1Enumerated |
ASN1Enumerated.decodeAsEnumerated(ASN1Element element)
Decodes the provided ASN.1 element as an enumerated element.
|
static ASN1Enumerated |
ASN1Enumerated.decodeAsEnumerated(byte[] elementBytes)
Decodes the contents of the provided byte array as an enumerated element.
|
ASN1GeneralizedTime |
ASN1Element.decodeAsGeneralizedTime()
Decodes this ASN.1 element as a generalized time element.
|
static ASN1GeneralizedTime |
ASN1GeneralizedTime.decodeAsGeneralizedTime(ASN1Element element)
Decodes the provided ASN.1 element as a generalized time element.
|
static ASN1GeneralizedTime |
ASN1GeneralizedTime.decodeAsGeneralizedTime(byte[] elementBytes)
Decodes the contents of the provided byte array as a generalized time
element.
|
ASN1IA5String |
ASN1Element.decodeAsIA5String()
Decodes this ASN.1 element as an IA5 string element.
|
static ASN1IA5String |
ASN1IA5String.decodeAsIA5String(ASN1Element element)
Decodes the provided ASN.1 element as an IA5 string element.
|
static ASN1IA5String |
ASN1IA5String.decodeAsIA5String(byte[] elementBytes)
Decodes the contents of the provided byte array as an IA5 string element.
|
ASN1Integer |
ASN1Element.decodeAsInteger()
Decodes this ASN.1 element as an integer element.
|
static ASN1Integer |
ASN1Integer.decodeAsInteger(ASN1Element element)
Decodes the provided ASN.1 element as an integer element.
|
static ASN1Integer |
ASN1Integer.decodeAsInteger(byte[] elementBytes)
Decodes the contents of the provided byte array as an integer element.
|
ASN1Long |
ASN1Element.decodeAsLong()
Decodes this ASN.1 element as a long element.
|
static ASN1Long |
ASN1Long.decodeAsLong(ASN1Element element)
Decodes the provided ASN.1 element as a long element.
|
static ASN1Long |
ASN1Long.decodeAsLong(byte[] elementBytes)
Decodes the contents of the provided byte array as a long element.
|
ASN1Null |
ASN1Element.decodeAsNull()
Decodes this ASN.1 element as a null element.
|
static ASN1Null |
ASN1Null.decodeAsNull(ASN1Element element)
Decodes the provided ASN.1 element as a null element.
|
static ASN1Null |
ASN1Null.decodeAsNull(byte[] elementBytes)
Decodes the contents of the provided byte array as a null element.
|
ASN1NumericString |
ASN1Element.decodeAsNumericString()
Decodes this ASN.1 element as a numeric string element.
|
static ASN1NumericString |
ASN1NumericString.decodeAsNumericString(ASN1Element element)
Decodes the provided ASN.1 element as a numeric string element.
|
static ASN1NumericString |
ASN1NumericString.decodeAsNumericString(byte[] elementBytes)
Decodes the contents of the provided byte array as a numeric string
element.
|
ASN1ObjectIdentifier |
ASN1Element.decodeAsObjectIdentifier()
Decodes this ASN.1 element as an object identifier element.
|
static ASN1ObjectIdentifier |
ASN1ObjectIdentifier.decodeAsObjectIdentifier(ASN1Element element)
Decodes the provided ASN.1 element as an object identifier element.
|
static ASN1ObjectIdentifier |
ASN1ObjectIdentifier.decodeAsObjectIdentifier(byte[] elementBytes)
Decodes the contents of the provided byte array as an object identifier
element.
|
static ASN1OctetString |
ASN1OctetString.decodeAsOctetString(byte[] elementBytes)
Decodes the contents of the provided byte array as an octet string element.
|
ASN1PrintableString |
ASN1Element.decodeAsPrintableString()
Decodes this ASN.1 element as a printable string element.
|
static ASN1PrintableString |
ASN1PrintableString.decodeAsPrintableString(ASN1Element element)
Decodes the provided ASN.1 element as a printable string element.
|
static ASN1PrintableString |
ASN1PrintableString.decodeAsPrintableString(byte[] elementBytes)
Decodes the contents of the provided byte array as a printable string
element.
|
ASN1Sequence |
ASN1Element.decodeAsSequence()
Decodes this ASN.1 element as a sequence element.
|
static ASN1Sequence |
ASN1Sequence.decodeAsSequence(ASN1Element element)
Decodes the provided ASN.1 element as a sequence element.
|
static ASN1Sequence |
ASN1Sequence.decodeAsSequence(byte[] elementBytes)
Decodes the contents of the provided byte array as a sequence element.
|
ASN1Set |
ASN1Element.decodeAsSet()
Decodes this ASN.1 element as a set element.
|
static ASN1Set |
ASN1Set.decodeAsSet(ASN1Element element)
Decodes the provided ASN.1 element as a set element.
|
static ASN1Set |
ASN1Set.decodeAsSet(byte[] elementBytes)
Decodes the contents of the provided byte array as a set element.
|
ASN1UTCTime |
ASN1Element.decodeAsUTCTime()
Decodes this ASN.1 element as a UTC time element.
|
static ASN1UTCTime |
ASN1UTCTime.decodeAsUTCTime(ASN1Element element)
Decodes the provided ASN.1 element as a UTC time element.
|
static ASN1UTCTime |
ASN1UTCTime.decodeAsUTCTime(byte[] elementBytes)
Decodes the contents of the provided byte array as a UTC time element.
|
ASN1UTF8String |
ASN1Element.decodeAsUTF8String()
Decodes this ASN.1 element as a UTF-8 string element.
|
static ASN1UTF8String |
ASN1UTF8String.decodeAsUTF8String(ASN1Element element)
Decodes the provided ASN.1 element as a UTF-8 string element.
|
static ASN1UTF8String |
ASN1UTF8String.decodeAsUTF8String(byte[] elementBytes)
Decodes the contents of the provided byte array as a UTF-8 string element.
|
static long |
ASN1UTCTime.decodeTimestamp(String timestamp)
Decodes the provided string as a timestamp in the UTC time format.
|
static long |
ASN1GeneralizedTime.decodeTimestamp(String timestamp)
Decodes the provided string as a timestamp in the generalized time format.
|
byte[] |
ASN1BitString.getBytes()
Retrieves the bytes represented by the bits that comprise this bit string,
if the number of bits is a multiple of eight.
|
boolean |
ASN1StreamReaderSet.hasMoreElements()
Indicates whether there are more elements in this set to be read from the
associated ASN.1 stream reader.
|
boolean |
ASN1StreamReaderSequence.hasMoreElements()
Indicates whether there are more elements in this sequence to be read from
the associated ASN.1 stream reader.
|
BigInteger |
ASN1StreamReader.readBigInteger()
Reads an ASN.1 integer element from the input stream and returns the value
as a
BigInteger. |
Boolean |
ASN1StreamReader.readBoolean()
Reads an ASN.1 Boolean element from the input stream and returns the value
as a
Boolean. |
Integer |
ASN1StreamReader.readEnumerated()
Reads an ASN.1 enumerated element from the input stream and returns the
value as an
Integer. |
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.
|
Date |
ASN1StreamReader.readGeneralizedTime()
Reads an ASN.1 generalized time element from the input stream and returns
the value as a
Date. |
Integer |
ASN1StreamReader.readInteger()
Reads an ASN.1 integer element from the input stream and returns the value
as an
Integer. |
Long |
ASN1StreamReader.readLong()
Reads an ASN.1 integer element from the input stream and returns the value
as a
Long. |
void |
ASN1StreamReader.readNull()
Reads an ASN.1 null element from the input stream.
|
Date |
ASN1StreamReader.readUTCTime()
Reads an ASN.1 UTC time element from the input stream and returns the value
as a
Date. |
| 构造器和说明 |
|---|
ASN1BitString(byte type,
String stringRepresentation)
Creates a new ASN.1 bit string with the default BER type and a value
created from the provided string representation.
|
ASN1BitString(String stringRepresentation)
Creates a new ASN.1 bit string with the default BER type and a value
created from the provided string representation.
|
ASN1GeneralizedTime(byte type,
String timestamp)
Creates a new generalized time element with the specified BER type and a
time decoded from the provided string representation.
|
ASN1GeneralizedTime(String timestamp)
Creates a new generalized time element with the default BER type and a
time decoded from the provided string representation.
|
ASN1IA5String(byte type,
String stringValue)
Creates a new ASN.1 IA5 string element with the specified BER type and the
provided value.
|
ASN1IA5String(String stringValue)
Creates a new ASN.1 IA5 string element with the default BER type and the
provided value.
|
ASN1NumericString(byte type,
String stringValue)
Creates a new ASN.1 numeric string element with the specified BER type
and the provided value.
|
ASN1NumericString(String stringValue)
Creates a new ASN.1 numeric string element with the default BER type and
the provided value.
|
ASN1ObjectIdentifier(byte type,
OID oid)
Creates a new ASN.1 object identifier element with the specified BER type
and the provided OID.
|
ASN1ObjectIdentifier(byte type,
String oidString)
Creates a new ASN.1 object identifier element with the specified BER type
and the provided OID.
|
ASN1ObjectIdentifier(OID oid)
Creates a new ASN.1 object identifier element with the default BER type and
the provided OID.
|
ASN1ObjectIdentifier(String oidString)
Creates a new ASN.1 object identifier element with the default BER type and
the provided OID.
|
ASN1PrintableString(byte type,
String stringValue)
Creates a new ASN.1 printable string element with the specified BER type
and the provided value.
|
ASN1PrintableString(String stringValue)
Creates a new ASN.1 printable string element with the default BER type and
the provided value.
|
ASN1UTCTime(byte type,
String timestamp)
Creates a new UTC time element with the specified BER type and a time
decoded from the provided string representation.
|
ASN1UTCTime(String timestamp)
Creates a new UTC time element with the default BER type and a time decoded
from the provided string representation.
|
Copyright © 2022. All rights reserved.