this.authorizeAdminPublicKey = authorizeAdminPublicKey;
this.installAdminPrivateKey = installAdminPrivateKey;
this.resetLoginPassword = resetLoginPassword;
this.cryptFunction = cryptFunction;
if (adminUsername != null && authorizeAdminPublicKey && adminPrivateKey != null)
this.adminCredentials = new Credentials(adminUsername, adminPrivateKey);
else if (adminUsername != null && adminPassword != null) {
this.adminCredentials = new Credentials(adminUsername, adminPassword);
// if we're using password make sure we don't auth pubkey and that we don't lock ssh
this.authorizeAdminPublicKey = false;
this.lockSsh = false;
}
else