public DHBase(String generator, String agreement) { try { this.generator = SecurityUtils.getKeyPairGenerator(generator); this.agreement = SecurityUtils.getKeyAgreement(agreement); } catch (GeneralSecurityException e) { throw new SSHRuntimeException(e); } }
public DH() { try { generator = SecurityUtils.getKeyPairGenerator("DH"); agreement = SecurityUtils.getKeyAgreement("DH"); } catch (GeneralSecurityException e) { throw new SSHRuntimeException(e); } }
public DHBase(String generator, String agreement) { try { this.generator = SecurityUtils.getKeyPairGenerator(generator); this.agreement = SecurityUtils.getKeyAgreement(agreement); } catch (GeneralSecurityException e) { throw new SSHRuntimeException(e); } }