public class HandshakeCallbackSSLFilter
extends org.apache.mina.filter.ssl.SslFilter
IoFilter
similar to an SslFilter
that provides a
callbacks to handle a handshake exception.Modifier and Type | Class and Description |
---|---|
static interface |
HandshakeCallbackSSLFilter.Callback
Callback interface for dealing with handshake failures.
|
Constructor and Description |
---|
HandshakeCallbackSSLFilter(SSLContext sslContext)
Creates a new SSL filter using the specified
SSLContext . |
Modifier and Type | Method and Description |
---|---|
void |
messageReceived(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter,
org.apache.mina.core.session.IoSession session,
Object message) |
void |
setHandshakeExceptionCallback(HandshakeCallbackSSLFilter.Callback handshakeExceptionCallback)
Sets the callback used if a failure occurred while receiving a handshake.
|
exceptionCaught, filterClose, filterWrite, getEnabledCipherSuites, getEnabledProtocols, getSslSession, initiateHandshake, isNeedClientAuth, isSecured, isSslStarted, isUseClientMode, isWantClientAuth, messageSent, onPostAdd, onPreAdd, onPreRemove, sessionClosed, setEnabledCipherSuites, setEnabledProtocols, setNeedClientAuth, setUseClientMode, setWantClientAuth, startSsl, stopSsl
public HandshakeCallbackSSLFilter(SSLContext sslContext)
SSLContext
.sslContext
- the context.public void setHandshakeExceptionCallback(HandshakeCallbackSSLFilter.Callback handshakeExceptionCallback)
handshakeExceptionCallback
- the callback to use.public void messageReceived(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter, org.apache.mina.core.session.IoSession session, Object message) throws SSLException
messageReceived
in interface org.apache.mina.core.filterchain.IoFilter
messageReceived
in class org.apache.mina.filter.ssl.SslFilter
SSLException
Copyright © 2018 Open eHealth Foundation. All rights reserved.