Search in sources :

Example 1 with NoOpValidator

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;
}
Also used : NoOpValidator(org.apache.wss4j.dom.validate.NoOpValidator) WSSConfig(org.apache.wss4j.dom.engine.WSSConfig) WSSecurityEngine(org.apache.wss4j.dom.engine.WSSecurityEngine)

Aggregations

WSSConfig (org.apache.wss4j.dom.engine.WSSConfig)1 WSSecurityEngine (org.apache.wss4j.dom.engine.WSSecurityEngine)1 NoOpValidator (org.apache.wss4j.dom.validate.NoOpValidator)1