public final class ASN1Set extends ASN1Element
| 构造器和说明 |
|---|
ASN1Set()
Creates a new ASN.1 set with the default BER type and no encapsulated
elements.
|
ASN1Set(ASN1Element... elements)
Creates a new ASN.1 set with the default BER type and the provided set of
elements.
|
ASN1Set(byte type)
Creates a new ASN.1 set with the specified BER type and no encapsulated
elements.
|
ASN1Set(byte type,
ASN1Element... elements)
Creates a new ASN.1 set with the specified 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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ASN1Set |
decodeAsSet(ASN1Element element)
Decodes the provided ASN.1 element as a set element.
|
static ASN1Set |
decodeAsSet(byte[] elementBytes)
Decodes the contents of the provided byte array as a set element.
|
ASN1Element[] |
elements()
Retrieves the set of encapsulated elements held in this set.
|
void |
encodeTo(ByteStringBuffer buffer)
Appends an encoded representation of this ASN.1 element to the provided
buffer.
|
byte[] |
getValue()
Retrieves the encoded value for this element.
|
int |
getValueLength()
Retrieves the number of bytes contained in the value.
|
void |
toString(StringBuilder buffer)
Appends a string representation of the value for this ASN.1 element to the
provided buffer.
|
decode, decodeAsBigInteger, decodeAsBitString, decodeAsBoolean, decodeAsEnumerated, decodeAsGeneralizedTime, decodeAsIA5String, decodeAsInteger, decodeAsLong, decodeAsNull, decodeAsNumericString, decodeAsObjectIdentifier, decodeAsOctetString, decodeAsPrintableString, decodeAsSequence, decodeAsSet, decodeAsUTCTime, decodeAsUTF8String, encode, encodeLength, equals, equalsIgnoreType, getType, getTypeClass, hashCode, isConstructed, readFrom, readFrom, toString, writeTopublic ASN1Set()
public ASN1Set(byte type)
type - The BER type to use for this element.public ASN1Set(@Nullable ASN1Element... elements)
elements - The set of elements to include in this set.public ASN1Set(@Nullable Collection<? extends ASN1Element> elements)
elements - The set of elements to include in this set.public ASN1Set(byte type,
@Nullable
ASN1Element... elements)
type - The BER type to use for this element.elements - The set of elements to include in this set.public ASN1Set(byte type,
@Nullable
Collection<? extends ASN1Element> elements)
type - The BER type to use for this element.elements - The set of elements to include in this set.public int getValueLength()
getValueLength 在类中 ASN1Element@NonNull public byte[] getValue()
getValue 在类中 ASN1Elementpublic void encodeTo(@NonNull ByteStringBuffer buffer)
encodeTo 在类中 ASN1Elementbuffer - The buffer to which the encoded representation should be
appended.@NonNull public ASN1Element[] elements()
@NonNull public static ASN1Set decodeAsSet(@NonNull byte[] elementBytes) throws ASN1Exception
elementBytes - The byte array to decode as an ASN.1 set element.ASN1Exception - If the provided array cannot be decoded as a set
element.@NonNull public static ASN1Set decodeAsSet(@NonNull ASN1Element element) throws ASN1Exception
element - The ASN.1 element to be decoded.ASN1Exception - If the provided element cannot be decoded as a set
element.public void toString(@NonNull StringBuilder buffer)
toString 在类中 ASN1Elementbuffer - The buffer to which to append the information.Copyright © 2022. All rights reserved.