GT-2997: made sshkeyutil methods public

This commit is contained in:
adamopolous 2019-07-11 10:38:18 -04:00
parent 60b1f36c98
commit c098180d90

View file

@ -22,7 +22,7 @@ import java.util.Base64;
import ch.ethz.ssh2.packets.TypesWriter; import ch.ethz.ssh2.packets.TypesWriter;
class SSHKeyUtil { public class SSHKeyUtil {
/** /**
* Generate private/public SSH keys for test purposes using RSA algorithm. * Generate private/public SSH keys for test purposes using RSA algorithm.
@ -30,7 +30,7 @@ class SSHKeyUtil {
* key files ([0] corresponds to private key, [1] corresponds to public key) * key files ([0] corresponds to private key, [1] corresponds to public key)
* @throws NoSuchAlgorithmException * @throws NoSuchAlgorithmException
*/ */
static String[] generateSSHKeys() throws NoSuchAlgorithmException { public static String[] generateSSHKeys() throws NoSuchAlgorithmException {
KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA"); KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");
generator.initialize(2048); generator.initialize(2048);