public void writeTo(OutputStream os) throws IOException {
  os.write(getEncoded());
}

public void writeTo ( OutputStream os ) throws IOException { os . write ( getEncoded ( ) ) ; }
writes the key to an output stream
