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