@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ASN1Null extends ASN1Element
| Modifier and Type | Field and Description | 
|---|---|
static ASN1Null | 
UNIVERSAL_NULL_ELEMENT
A pre-allocated ASN.1 null element with the universal null BER type. 
 | 
| Constructor and Description | 
|---|
ASN1Null()
Creates a new ASN.1 null element with the default BER type. 
 | 
ASN1Null(byte type)
Creates a new ASN.1 null element with the specified BER type. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ASN1Null | 
decodeAsNull(ASN1Element element)
Decodes the provided ASN.1 element as a null element. 
 | 
static ASN1Null | 
decodeAsNull(byte[] elementBytes)
Decodes the contents of the provided byte array as a null element. 
 | 
void | 
toString(java.lang.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, encodeTo, equals, equalsIgnoreType, getType, getTypeClass, getValue, getValueLength, hashCode, isConstructed, readFrom, readFrom, toString, writeTo@NotNull public static final ASN1Null UNIVERSAL_NULL_ELEMENT
public ASN1Null()
public ASN1Null(byte type)
type - The BER type to use for this ASN.1 null element.@NotNull public static ASN1Null decodeAsNull(@NotNull byte[] elementBytes) throws ASN1Exception
elementBytes - The byte array to decode as an ASN.1 null element.ASN1Exception - If the provided array cannot be decoded as a null
                         element.@NotNull public static ASN1Null decodeAsNull(@NotNull ASN1Element element) throws ASN1Exception
element - The ASN.1 element to be decoded.ASN1Exception - If the provided element cannot be decoded as a null
                         element.public void toString(@NotNull java.lang.StringBuilder buffer)
toString in class ASN1Elementbuffer - The buffer to which to append the information.