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