Class HandshakeCallbackSSLFilter
- java.lang.Object
-
- org.apache.mina.core.filterchain.IoFilterAdapter
-
- org.apache.mina.filter.ssl.SslFilter
-
- org.openehealth.ipf.platform.camel.ihe.mllp.core.HandshakeCallbackSSLFilter
-
- All Implemented Interfaces:
org.apache.mina.core.filterchain.IoFilter
public class HandshakeCallbackSSLFilter extends org.apache.mina.filter.ssl.SslFilter
IoFilter
similar to anSslFilter
that provides a callbacks to handle a handshake exception.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HandshakeCallbackSSLFilter.Callback
Callback interface for dealing with handshake failures.
-
Constructor Summary
Constructors Constructor Description HandshakeCallbackSSLFilter(SSLContext sslContext)
Creates a new SSL filter using the specifiedSSLContext
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.mina.filter.ssl.SslFilter
exceptionCaught, filterClose, filterWrite, getEnabledCipherSuites, getEnabledProtocols, getSslSession, initiateHandshake, isNeedClientAuth, isSecured, isSslStarted, isUseClientMode, isWantClientAuth, messageSent, onPostAdd, onPreAdd, onPreRemove, sessionClosed, setEnabledCipherSuites, setEnabledProtocols, setNeedClientAuth, setUseClientMode, setWantClientAuth, startSsl, stopSsl
-
-
-
-
Constructor Detail
-
HandshakeCallbackSSLFilter
public HandshakeCallbackSSLFilter(SSLContext sslContext)
Creates a new SSL filter using the specifiedSSLContext
.- Parameters:
sslContext
- the context.
-
-
Method Detail
-
setHandshakeExceptionCallback
public void setHandshakeExceptionCallback(HandshakeCallbackSSLFilter.Callback handshakeExceptionCallback)
Sets the callback used if a failure occurred while receiving a handshake.- Parameters:
handshakeExceptionCallback
- the callback to use.
-
messageReceived
public void messageReceived(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter, org.apache.mina.core.session.IoSession session, Object message) throws SSLException
- Specified by:
messageReceived
in interfaceorg.apache.mina.core.filterchain.IoFilter
- Overrides:
messageReceived
in classorg.apache.mina.filter.ssl.SslFilter
- Throws:
SSLException
-
-