use of org.apache.wss4j.dom.processor.Processor in project ddf by codice.
the class StsIssueTest method processToken.
/**
* Method to validate the retrieved token.
*/
private List<WSSecurityEngineResult> processToken(SecurityToken token) throws WSSecurityException {
RequestData requestData = new RequestData();
WSSConfig wssConfig = WSSConfig.getNewInstance();
requestData.setWssConfig(wssConfig);
/*DDF-733
CallbackHandler callbackHandler = new CommonCallbackHandler();
requestData.setCallbackHandler(callbackHandler);
*/
Crypto crypto = CryptoFactory.getInstance("serverKeystore.properties");
requestData.setDecCrypto(crypto);
requestData.setSigVerCrypto(crypto);
Processor processor = new SAMLTokenProcessor();
return processor.handleToken(token.getToken(), requestData, new WSDocInfo(token.getToken().getOwnerDocument()));
}
Aggregations