Class SwitchingSslFilter

  • All Implemented Interfaces:
    org.glassfish.grizzly.filterchain.Filter

    public final class SwitchingSslFilter
    extends org.glassfish.grizzly.ssl.SSLFilter
    The SSLFilter implementation, which might be activated/deactivated at runtime.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.glassfish.grizzly.ssl.SSLBaseFilter

        org.glassfish.grizzly.ssl.SSLBaseFilter.CertificateEvent, org.glassfish.grizzly.ssl.SSLBaseFilter.HandshakeListener, org.glassfish.grizzly.ssl.SSLBaseFilter.SSLTransportFilterWrapper
    • Field Summary

      • Fields inherited from class org.glassfish.grizzly.ssl.SSLFilter

        maxPendingBytes
      • Fields inherited from class org.glassfish.grizzly.ssl.SSLBaseFilter

        COPY_CLONER, handshakeListeners
    • Constructor Summary

      Constructors 
      Constructor Description
      SwitchingSslFilter​(org.glassfish.grizzly.ssl.SSLEngineConfigurator clientConfig, boolean secureByDefault)
      Constructs a new SSL filter (client side).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.glassfish.grizzly.filterchain.NextAction handleEvent​(org.glassfish.grizzly.filterchain.FilterChainContext ctx, org.glassfish.grizzly.filterchain.FilterChainEvent event)  
      org.glassfish.grizzly.filterchain.NextAction handleRead​(org.glassfish.grizzly.filterchain.FilterChainContext ctx)  
      org.glassfish.grizzly.filterchain.NextAction handleWrite​(org.glassfish.grizzly.filterchain.FilterChainContext ctx)  
      void onAdded​(org.glassfish.grizzly.filterchain.FilterChain filterChain)  
      void onRemoved​(org.glassfish.grizzly.filterchain.FilterChain filterChain)  
      • Methods inherited from class org.glassfish.grizzly.ssl.SSLFilter

        createClientSSLEngine, doHandshakeStep, getClientSSLEngineConfigurator, getMaxPendingBytesPerConnection, handshake, handshake, handshake, handshake, notifyHandshakeComplete, notifyHandshakeFailed, setMaxPendingBytesPerConnection
      • Methods inherited from class org.glassfish.grizzly.ssl.SSLBaseFilter

        addHandshakeListener, createOptimizedTransportFilter, createSslConnectionContext, doHandshakeStep, doHandshakeSync, getHandshakeTimeout, getOptimizedTransportFilter, getPeerCertificateChain, getServerSSLEngineConfigurator, isRenegotiateOnClientAuthWant, notifyHandshakeStart, obtainSslConnectionContext, removeHandshakeListener, renegotiate, setHandshakeTimeout, setRenegotiationDisabled, unwrapAll, wrapAll
      • Methods inherited from class org.glassfish.grizzly.filterchain.BaseFilter

        createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, onFilterChainChanged, toString
    • Constructor Detail

      • SwitchingSslFilter

        public SwitchingSslFilter​(org.glassfish.grizzly.ssl.SSLEngineConfigurator clientConfig,
                                  boolean secureByDefault)
        Constructs a new SSL filter (client side).
        Parameters:
        clientConfig - TLS client configuration
        secureByDefault - true if to be secure by default
    • Method Detail

      • handleEvent

        public org.glassfish.grizzly.filterchain.NextAction handleEvent​(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
                                                                        org.glassfish.grizzly.filterchain.FilterChainEvent event)
                                                                 throws IOException
        Specified by:
        handleEvent in interface org.glassfish.grizzly.filterchain.Filter
        Overrides:
        handleEvent in class org.glassfish.grizzly.ssl.SSLBaseFilter
        Throws:
        IOException
      • handleRead

        public org.glassfish.grizzly.filterchain.NextAction handleRead​(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
                                                                throws IOException
        Specified by:
        handleRead in interface org.glassfish.grizzly.filterchain.Filter
        Overrides:
        handleRead in class org.glassfish.grizzly.ssl.SSLBaseFilter
        Throws:
        IOException
      • handleWrite

        public org.glassfish.grizzly.filterchain.NextAction handleWrite​(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
                                                                 throws IOException
        Specified by:
        handleWrite in interface org.glassfish.grizzly.filterchain.Filter
        Overrides:
        handleWrite in class org.glassfish.grizzly.ssl.SSLFilter
        Throws:
        IOException
      • onAdded

        public void onAdded​(org.glassfish.grizzly.filterchain.FilterChain filterChain)
        Specified by:
        onAdded in interface org.glassfish.grizzly.filterchain.Filter
        Overrides:
        onAdded in class org.glassfish.grizzly.ssl.SSLBaseFilter
      • onRemoved

        public void onRemoved​(org.glassfish.grizzly.filterchain.FilterChain filterChain)
        Specified by:
        onRemoved in interface org.glassfish.grizzly.filterchain.Filter
        Overrides:
        onRemoved in class org.glassfish.grizzly.ssl.SSLBaseFilter