01: package org.bouncycastle.asn1;
02:
03: import java.io.IOException;
04:
05: /**
06: * A NULL object.
07: */
08: public abstract class ASN1Null extends ASN1Object {
09: public ASN1Null() {
10: }
11:
12: public int hashCode() {
13: return 0;
14: }
15:
16: boolean asn1Equals(DERObject o) {
17: if (!(o instanceof ASN1Null)) {
18: return false;
19: }
20:
21: return true;
22: }
23:
24: abstract void encode(DEROutputStream out) throws IOException;
25:
26: public String toString() {
27: return "NULL";
28: }
29: }
|