01: package org.bouncycastle.asn1;
02:
03: import java.io.IOException;
04:
05: /**
06: * A NULL object.
07: */
08: public class DERNull extends ASN1Null {
09: public static final DERNull INSTANCE = new DERNull();
10:
11: byte[] zeroBytes = new byte[0];
12:
13: public DERNull() {
14: }
15:
16: void encode(DEROutputStream out) throws IOException {
17: out.writeEncoded(NULL, zeroBytes);
18: }
19: }
|