public void encodeSignedData(OutputStream out) throws IOException {
  DerOutputStream derout=new DerOutputStream();
  encodeSignedData(derout);
  out.write(derout.toByteArray());
}

public void encodeSignedData ( OutputStream out ) throws IOException { DerOutputStream derout = new DerOutputStream ( ) ; encodeSignedData ( derout ) ; out . write ( derout . toByteArray ( ) ) ; }
encodes the signed data to an output stream .
