return returnValue;
}
public HandlerInfo getMessageSecurityHandlerInfo(QName port) throws Exception
{
HandlerInfo rvalue = null;
MessageSecurityBindingDescriptor binding = null;
ServiceRefPortInfo portInfo = serviceRef.getPortInfoByPort(port);
if (portInfo != null) {
binding = portInfo.getMessageSecurityBinding();
}
ClientAuthConfig config = ClientAuthConfig.getConfig
(com.sun.enterprise.security.jauth.AuthConfig.SOAP,
binding, null);
if (config != null) {
// get understood headers from auth module.
QName[] headers = config.getMechanisms();
Map properties = new HashMap();
properties.put(MessageLayerClientHandler.CLIENT_AUTH_CONFIG, config);
properties.put(javax.xml.ws.handler.MessageContext.WSDL_SERVICE,
serviceRef.getServiceName());
rvalue = new HandlerInfo(MessageLayerClientHandler.class,
properties, headers);
}
return rvalue;
}