String outputString =
XMLUtils.PrettyDocumentToString(doc);
LOG.debug(outputString);
}
SecretKeyCallbackHandler secretKeyCallbackHandler = new SecretKeyCallbackHandler();
byte[] encodedBytes = WSSecurityUtil.generateDigest(keyData);
String identifier = Base64.encode(encodedBytes);
secretKeyCallbackHandler.addSecretKey(identifier, keyData);
CombinedCallbackHandler combinedCallbackHandler =
new CombinedCallbackHandler(secretKeyCallbackHandler, new KeystoreCallbackHandler());
verify(doc, combinedCallbackHandler);