code: public byte[] getEncoded() throws SshException {
  		ByteArrayWriter baw = new ByteArrayWriter();
  		try {
  			baw.writeString(getAlgorithm());
  			baw.writeBinaryString(cert.getEncoded());
  			return baw.toByteArray();
  		} catch (Throwable ex) {
  			throw new SshException("Failed to encoded key data",
  					SshException.INTERNAL_ERROR, ex);
  		} finally {
  			try {
  				baw.close();
  			} catch (IOException e) {
  			}
  		}
  	}
docs: Encode the public key into a blob of binary data, the encoded result will
  be passed into init to recreate the key.
  
  @return an encoded byte array
  @throws SshException
  @todo Implement this com.sshtools.ssh.SshPublicKey method