String algorithm = getString("algorithm", "DSA");
String macs = getString("macs", "hmac-sha1");
String ciphers = getString("ciphers", "aes256-ctr,aes192-ctr,aes128-ctr,arcfour256");
String welcomeBanner = getString("welcomeBanner", null);
SimpleGeneratorHostKeyProvider keyPairProvider = new SimpleGeneratorHostKeyProvider();
keyPairProvider.setPath(hostKey);
keyPairProvider.setKeySize(keySize);
keyPairProvider.setAlgorithm(algorithm);
KarafJaasAuthenticator authenticator = new KarafJaasAuthenticator(sshRealm);
UserAuthFactoriesFactory authFactoriesFactory = new UserAuthFactoriesFactory();
authFactoriesFactory.setAuthMethods(authMethods);