@Override
public void customizePort(Object service)
{
log.debug("Customizing the port for the WSRP CXF client.");
Client client = ClientProxy.getClient(service);
Map<String, Object> inPropertyMap = WSSConfiguration.getWSS4JInterceptorConfiguration(true, true);
Map<String, Object> outPropertyMap = WSSConfiguration.getWSS4JInterceptorConfiguration(true, false);
if (inPropertyMap != null && handleSpecialProperties(inPropertyMap))
{
WSS4JInInterceptor inInterceptor = new WSS4JInInterceptor(inPropertyMap);
client.getInInterceptors().add(inInterceptor);
}
if (outPropertyMap != null && handleSpecialProperties(outPropertyMap))
{
WSS4JOutInterceptor outInterceptor = new WSS4JOutInterceptor(outPropertyMap);
client.getOutInterceptors().add(outInterceptor);
}
}