XMLUtils.PrettyDocumentToString(encryptedDoc);
LOG.debug(outputString);
}
// Configure the Validator
WSSConfig wssConfig = WSSConfig.getNewInstance();
KerberosTokenValidator validator = new KerberosTokenValidator();
validator.setContextName("bob");
validator.setServiceName("bob@service.ws.apache.org");
wssConfig.setValidator(WSSecurityEngine.BINARY_TOKEN, validator);
WSSecurityEngine secEngine = new WSSecurityEngine();
secEngine.setWssConfig(wssConfig);
List<WSSecurityEngineResult> results =
secEngine.processSecurityHeader(encryptedDoc, null, callbackHandler, null);