use of org.apache.wss4j.dom.validate.NoOpValidator in project cxf by apache.
the class WSS4JInInterceptor method getSecurityEngine.
/**
* @return the WSSecurityEngine in use by this interceptor.
*/
protected WSSecurityEngine getSecurityEngine(boolean utWithCallbacks) {
if (!utWithCallbacks) {
WSSConfig config = WSSConfig.getNewInstance();
config.setValidator(WSConstants.USERNAME_TOKEN, new NoOpValidator());
WSSecurityEngine ret = new WSSecurityEngine();
ret.setWssConfig(config);
return ret;
} else if (defaultConfig != null) {
WSSecurityEngine engine = new WSSecurityEngine();
engine.setWssConfig(defaultConfig);
return engine;
}
return null;
}
Aggregations