code: public static SshPublicKeyFile create(SshPublicKey key, String comment,
  			int format) throws IOException {
  		switch (format) {
  		case OPENSSH_FORMAT:
  			return new OpenSSHPublicKeyFile(key, comment);
  		case SECSH_FORMAT:
  			return new SECSHPublicKeyFile(key, comment);
  		default:
  			throw new IOException("Invalid format type specified!");
  		}
  	}
docs: Create a file representation from an existing public key. To generate new
  keys see <a href="SshKeyPairGenerator.html>SshKeyPairGenerator</a>.
  
  @param key
  the public key
  @param comment
  the comment to apply to the formatted key
  @param format
  the format type
  @return SshPublicKeyFile
  @throws IOException