public abstract class EdgentSslContainerProvider
extends java.lang.Object
WebSocketContainer
provider for dealing with javax.websocket
SSL issues.
javax.websocket.ContainerProvider
ignores the
javax.net.ssl.keyStore
system property.
It correctly handles javax.net.ssl.trustStore
The net is that Jetty's javax.websocket.ContainerProvider
works fine for the "ws" protocol and for "wss" as long as
one doesn't need to programatically specify a trustStore path
and one doesn't to specify a keyStore for SSL client authentication support.
A EdgentSslContainerProvider
implementation is responsible for
working around those limitations.
Constructor and Description |
---|
EdgentSslContainerProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract javax.websocket.WebSocketContainer |
getSslContainer(java.util.Properties config)
Create a WebSocketContainer setup for SSL.
|
static javax.websocket.WebSocketContainer |
getSslWebSocketContainer(java.util.Properties config)
Create a WebSocketContainer setup for SSL.
|
public static javax.websocket.WebSocketContainer getSslWebSocketContainer(java.util.Properties config) throws java.lang.RuntimeException
The Java ServiceLoader
is used to locate an implementation
of org.apache.edgent.javax.websocket.Edgent.SslContainerProvider
.
config
- SSL configuration info as described by
org.apache.edgent.connectors.wsclient.javax.websocket.Jsr356WebSocketClient
.java.lang.RuntimeException
- upon failureprotected abstract javax.websocket.WebSocketContainer getSslContainer(java.util.Properties config)
config
- SSL configuration info.java.lang.RuntimeException
- if it failsCopyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641