wClass = Loader.loadClass(validatorClassName);
} catch (ClassNotFoundException e) {
throw new WSTrustException("STSManager: cannot load security token class: ",
e);
}
STValidator stValidator = null;
try {
//Create a new instance of the STIssuer
stValidator = (STValidator) wClass.newInstance();
} catch (java.lang.Exception e) {
throw new WSTrustException("STSManager: cannot create instance of security token validator: "
+ stValidator,
e);
}
try {
res = stValidator.validate(req, res);
} catch (java.lang.Exception e) {
throw new WSTrustException("STSManager: could not validate the token " + stValidator,
e);
}