Class HandshakeCallbackSSLFilter

  • All Implemented Interfaces:
    org.apache.mina.core.filterchain.IoFilter

    public class HandshakeCallbackSSLFilter
    extends org.apache.mina.filter.ssl.SslFilter
    IoFilter similar to an SslFilter 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.
      • Nested classes/interfaces inherited from class org.apache.mina.filter.ssl.SslFilter

        org.apache.mina.filter.ssl.SslFilter.SslFilterMessage
      • Nested classes/interfaces inherited from interface org.apache.mina.core.filterchain.IoFilter

        org.apache.mina.core.filterchain.IoFilter.NextFilter
    • Field Summary

      • Fields inherited from class org.apache.mina.filter.ssl.SslFilter

        CLIENT_HANDSHAKE, DISABLE_ENCRYPTION_ONCE, PEER_ADDRESS, SSL_SESSION, START_HANDSHAKE, USE_NOTIFICATION
    • 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
      • Methods inherited from class org.apache.mina.core.filterchain.IoFilterAdapter

        destroy, event, init, inputClosed, onPostRemove, sessionCreated, sessionIdle, sessionOpened, toString
    • Constructor Detail

      • HandshakeCallbackSSLFilter

        public HandshakeCallbackSSLFilter​(SSLContext sslContext)
        Creates a new SSL filter using the specified SSLContext.
        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 interface org.apache.mina.core.filterchain.IoFilter
        Overrides:
        messageReceived in class org.apache.mina.filter.ssl.SslFilter
        Throws:
        SSLException