DERNull (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.asn1

## Class DERNull

- java.lang.Object
- - org.bouncycastle.asn1.ASN1Object
  - - org.bouncycastle.asn1.ASN1Primitive
    - - org.bouncycastle.asn1.ASN1Null
      - - org.bouncycastle.asn1.DERNull

- All Implemented Interfaces:
    ASN1Encodable, Encodable

      public class DERNull
      extends ASN1Null

  An ASN.1 DER NULL object.

  Preferably use the constant: DERNull.INSTANCE.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static DERNull` | `INSTANCE`

  - ### Method Summary

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Null

      `getInstance, getInstance, getTagged, hashCode, toString`

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Primitive

      `encodeTo, encodeTo, equals, equals, equals, fromByteArray, fromStream, toASN1Primitive`

    - ### Methods inherited from class org.bouncycastle.asn1.ASN1Object

      `getEncoded, getEncoded, hasEncodedTagValue`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final DERNull INSTANCE