Allow the password for signing to come from the crypto properties file
@@ -108,10 +108,13 @@ public abstract class AbstractSAMLTokenProvider {
}
}
// Get the password
+ String password = null;
+ if (callbackHandler != null) {
WSPasswordCallback[] cb = {new WSPasswordCallback(alias, WSPasswordCallback.SIGNATURE)};
LOG.fine("Creating SAML Token");
callbackHandler.handle(cb);
- String password = cb[0].getPassword();
+ password = cb[0].getPassword();
+ }
LOG.fine("Signing SAML Token");
boolean useKeyValue = signatureProperties.isUseKeyValue();
