wClass = Loader.loadClass(issuerClassName);
} catch (ClassNotFoundException e) {
throw new WSTrustException("STSManager: cannot load security token class: ",
e);
}
STIssuer stissuer = null;
try {
//Create a new instance of the STIssuer
stissuer = (STIssuer) wClass.newInstance();
} catch (java.lang.Exception e) {
throw new WSTrustException("STSManager: cannot create instance of security token issuer: "
+ stissuer,
e);
}
try {
res = stissuer.issue(req, res);
} catch (java.lang.Exception e) {
System.out.println(e.getMessage());
throw new WSTrustException("STSManager: could not issue a token " + stissuer,
e);