public boolean checkCredentials(String userName, String password) {
try {
Identity identity = createIdentity(Identity.getRootName(userName), password,
Identity.getRootIdentityClass(userName));
GetProxyIdNot gpin = new GetProxyIdNot(identity, null);
gpin.invoke(AdminTopic.getDefault());
return true;
} catch (Exception exc) {
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG, "", exc);
return false;