}
//Finally do the authentication of user and password
final ASJMXAuthenticator authenticator = new ASJMXAuthenticator();
authenticator.setRealmName(realmName);
authenticator.setLoginDriver(new ASLoginDriverImpl());
authenticator.authenticate(new String[] {user, password});
} catch (Exception ex) {
throw new RepositoryException(
_strMgr.getString("couldNotValidateMasterPassword", user), ex);
}
}