Class ASN1Null

All Implemented Interfaces:
ASN1Encodable, Encodable
Direct Known Subclasses:
DERNull

public abstract class ASN1Null extends ASN1Primitive
A NULL object - use DERNull.INSTANCE for populating structures.
  • Method Details

    • getInstance

      public static ASN1Null getInstance(Object o)
      Return an instance of ASN.1 NULL from the passed in object.

      Accepted inputs:

      • null → null
      • ASN1Null object
      • a byte[] containing ASN.1 NULL object

      Parameters:
      o - object to be converted.
      Returns:
      an instance of ASN1Null, or null.
      Throws:
      IllegalArgumentException - if the object cannot be converted.
    • getInstance

      public static ASN1Null getInstance(ASN1TaggedObject taggedObject, boolean explicit)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class ASN1Primitive
    • toString

      public String toString()
      Overrides:
      toString in class Object