@ManagedAttribute @Description("Is the service secured?") public boolean getSecured() { return port.isSecure(); }
@ManagedAttribute @Description("Is the service secured?") public boolean getSecured() { return port.isSecure(); }
@ManagedAttribute @Description("Is the service secured?") public boolean getSecured() { return port.isSecure(); }
@ManagedAttribute @Description("Is the service secured?") public boolean getSecured() { return port.isSecure(); }
public static final void configure(final Endpoint endpoint, final PortData port) { final Properties p = port.getProperties(); if (p != null && p.containsKey(OPENEJB_ENDPOINT_CONFIGURATOR)) { final String classname = p.getProperty(OPENEJB_ENDPOINT_CONFIGURATOR); try { final EndpointConfigurator configurator = (EndpointConfigurator) Thread.currentThread().getContextClassLoader().loadClass(classname).newInstance(); configurator.configure(endpoint, p); } catch (final Exception e) { LOGGER.error("can't configure endpoint " + endpoint + " with configurator " + classname + ", using default config", e); if (port.isSecure()) { setupWSS4JChain(endpoint, p); } } } else { if (port.isSecure()) { setupWSS4JChain(endpoint, p); } } }
public static final void configure(Endpoint endpoint, PortData port) { final Properties p = port.getProperties(); if (p != null && p.containsKey(OPENEJB_ENDPOINT_CONFIGURATOR)) { final String classname = p.getProperty(OPENEJB_ENDPOINT_CONFIGURATOR); try { final EndpointConfigurator configurator = (EndpointConfigurator) Thread.currentThread().getContextClassLoader().loadClass(classname).newInstance(); configurator.configure(endpoint, p); } catch (Exception e) { LOGGER.error("can't configure endpoint " + endpoint + " with configurator " + classname + ", using default config", e); if (port.isSecure()) { setupWSS4JChain(endpoint, p); } } } else { if (port.isSecure()) { setupWSS4JChain(endpoint, p); } } }
public static PortData toPortData(PortInfo port, Collection<Injection> injections, URL baseUrl, ClassLoader classLoader) throws OpenEJBException { PortData portData = new PortData(); portData.setPortId(port.portId); if (port.serviceName != null && port.serviceName.length() != 0) { portData.setServiceName(QName.valueOf(port.serviceName)); } if (port.portName != null && port.portName.length() != 0) { portData.setPortName(QName.valueOf(port.portName)); } portData.setWsdlUrl(getWsdlURL(port.wsdlFile, baseUrl, classLoader)); portData.getHandlerChains().addAll(toHandlerChainData(port.handlerChains, classLoader)); portData.getInjections().addAll(injections); portData.setMtomEnabled(port.mtomEnabled); portData.setBindingID(port.binding); portData.setWsdlPort(port.wsdlPort); portData.setWsdlService(port.wsdlService); portData.setLocation(port.location); portData.setSecure("WS-SECURITY".equals(port.authMethod)); if (portData.isSecure()) { portData.setSecurityProperties(port.properties); } return portData; }