public String execute(JavaService js) {
		if (args.length < 2) {
			return invalidArguments;
		}

		switch (args[1]) {
		// Generate RSA keypair
		case "rsa":
			return generateRsaKeys();
			// Generate ElGamal keypair
		case "elgamal":
			return generateElGamalKeys();
			// Generate both RSA and ElGamal key pair
		case "both":
			StringBuilder sb = new StringBuilder();
			sb.append(generateRsaKeys());
			sb.append("\n");
			sb.append(generateElGamalKeys());
			return sb.toString();
		default:
			return invalidArguments;
		}
	}