public abstract class SSLConnection extends Object
Modifier and Type | Method and Description |
---|---|
static SSLConnection |
forEngine(SSLEngine engine)
Create a
SSLConnection for the given SSL engine. |
static SSLConnection |
forSession(SSLSession session,
boolean clientMode)
Create a
SSLConnection for the given SSL socket. |
static SSLConnection |
forSocket(SSLSocket socket)
Create a
SSLConnection for the given SSL socket. |
byte[] |
getChannelBinding(String bindingType)
Get the channel binding of the given type from this connection.
|
abstract SSLSession |
getSession()
Get the SSL session associated with this connection.
|
void |
handleChannelBindingCallback(ChannelBindingCallback callback)
Populate the given channel binding callback with any channel binding data that might be present on this
connection.
|
abstract boolean |
isClientMode()
Get the client-mode flag for this connection.
|
public abstract SSLSession getSession()
null
if there is nonepublic abstract boolean isClientMode()
public byte[] getChannelBinding(String bindingType)
null
is returned.null
if it is not supportedpublic void handleChannelBindingCallback(ChannelBindingCallback callback)
callback
- the binding callback to populate (must not be null
)public static SSLConnection forEngine(SSLEngine engine)
SSLConnection
for the given SSL engine.engine
- the SSL engine (must not be null
)null
)public static SSLConnection forSocket(SSLSocket socket)
SSLConnection
for the given SSL socket.socket
- the SSL socket (must not be null
)null
)public static SSLConnection forSession(SSLSession session, boolean clientMode)
SSLConnection
for the given SSL socket. Since no connection information will be
available in this case, not all channel binding modes will be supported.session
- the SSL session (must not be null
)clientMode
- true
if the session is client-side, false
if it is server-sidenull
)Copyright © 2017 JBoss by Red Hat. All rights reserved.