1 19 20 package com.maverick.crypto.asn1; 21 22 import java.io.IOException ; 23 24 27 public class DERNull 28 extends ASN1Null 29 { 30 byte[] zeroBytes = new byte[0]; 31 32 public DERNull() 33 { 34 } 35 36 void encode( 37 DEROutputStream out) 38 throws IOException  39 { 40 out.writeEncoded(NULL, zeroBytes); 41 } 42 43 public boolean equals( 44 Object o) 45 { 46 if ((o == null) || !(o instanceof DERNull)) 47 { 48 return false; 49 } 50 51 return true; 52 } 53 } 54 | Popular Tags |