public byte[] asn1Encode() throws IOException {
  DerOutputStream out=new DerOutputStream();
  out.putUnalignedBitString(bits);
  return out.toByteArray();
}

public byte [ ] asn1Encode ( ) throws IOException { DerOutputStream out = new DerOutputStream ( ) ; out . putUnalignedBitString ( bits ) ; return out . toByteArray ( ) ; }
writes the encoded data .
