0 Replies Latest reply on Oct 20, 2017 3:39 AM by Nicklas Karlsson

    Dynamic SSLContext for JAX-WS?

    Nicklas Karlsson Master

      I'm trying to set the SSL context for a web service from a byte[] based keystore based on examples from the net (what did programmers do before StackOverflow?) using

       

       

      bindingProvider.getRequestContext().put(JAXWSProperties.SSL_SOCKET_FACTORY, sslContext.getSocketFactory());

       

       

      but the JAXWSProperties class is nowhere to be found and various attributes like "com.sun.xml.ws.transport.https.client.SSLSocketFactory" or "com.sun.xml.internal.ws.transport.https.client.SSLSocketFactory"

      are probably too implementation specific. What is the "standard" (or WildFly/CXF) way of doing this. I didn't see any attribute in BindingProvider (like there is for ENDPOINT_ADDRESS_PROPERTY). I know I can set the keystore location with -D but I'd prefer the byte[]/programmatic way....