Class cbClass;
try {
cbClass = Loader.loadClass(classLoader, cbHandlerClass);
} catch (ClassNotFoundException e) {
throw new RampartException("cannotLoadPolicyValidatorCbClass",
new String[]{cbHandlerClass}, e);
}
try {
cbHandler = (PolicyValidatorCallbackHandler) cbClass.newInstance();
} catch (java.lang.Exception e) {
throw new RampartException("cannotCreatePolicyValidatorCallbackInstance",
new String[]{cbHandlerClass}, e);
}
} else { // Initialise default PolicyValidatorCallbackHandler...
cbHandler = new PolicyBasedResultsValidator();