    001package org.apache.commons.ssl.asn1;
    002
    003import java.io.IOException;
    004
    005/** A NULL object. */
    006public abstract class ASN1Null
    007    extends ASN1Object {
    008    public ASN1Null() {
    009    }
    010
    011    public int hashCode() {
    012        return 0;
    013    }
    014
    015    boolean asn1Equals(
    016        DERObject o) {
    017        if (!(o instanceof ASN1Null)) {
    018            return false;
    019        }
    020
    021        return true;
    022    }
    023
    024    abstract void encode(DEROutputStream out)
    025        throws IOException;
    026
    027    public String toString() {
    028        return "NULL";
    029    }
    030}