use of com.sun.enterprise.admin.servermgmt.NodeKeystoreManager in project Payara by payara.
the class ChangeNodeMasterPasswordCommand method encryptKeystore.
/*
* This will encrypt the keystore
*/
public void encryptKeystore(String f) throws CommandException {
RepositoryConfig nodeConfig = new RepositoryConfig(f, new File(nodeDir, node).toString(), f);
NodeKeystoreManager km = new NodeKeystoreManager();
try {
km.encryptKeystore(nodeConfig, oldPassword, newPassword);
} catch (Exception e) {
throw new CommandException(strings.get("Keystore.not.encrypted"), e);
}
}
Aggregations