Class DisableSslContextFactory

    • Constructor Detail

      • DisableSslContextFactory

        public DisableSslContextFactory()
    • Method Detail

      • buildKeyManagerFactory

        protected javax.net.ssl.KeyManagerFactory buildKeyManagerFactory()
                                                                  throws javax.net.ssl.SSLException
        Specified by:
        buildKeyManagerFactory in class AbstractSslContextFactory
        Throws:
        javax.net.ssl.SSLException
      • buildOutboundKeyManagerFactory

        protected javax.net.ssl.KeyManagerFactory buildOutboundKeyManagerFactory()
                                                                          throws javax.net.ssl.SSLException
        Description copied from class: AbstractSslContextFactory
        Create a KeyManagerFactory for outbound connections. It provides a seperate keystore for internode mTLS outbound connections.
        Specified by:
        buildOutboundKeyManagerFactory in class AbstractSslContextFactory
        Returns:
        KeyManagerFactory
        Throws:
        javax.net.ssl.SSLException
      • hasKeystore

        public boolean hasKeystore()
        Description copied from interface: ISslContextFactory
        Returns if this factory uses private keystore.
        Returns:
        true by default unless the implementation overrides this
      • hasOutboundKeystore

        public boolean hasOutboundKeystore()
        Description copied from interface: ISslContextFactory
        Returns if this factory uses outbound keystore.
        Returns:
        true by default unless the implementation overrides this
      • initHotReloading

        public void initHotReloading()
                              throws javax.net.ssl.SSLException
        Description copied from interface: ISslContextFactory
        Initializes hot reloading of the security keys/certs. The implementation must guarantee this to be thread safe.
        Throws:
        javax.net.ssl.SSLException
      • shouldReload

        public boolean shouldReload()
        Description copied from interface: ISslContextFactory
        Returns if any changes require the reloading of the SSL context returned by this factory. This will be called by Cassandra's periodic polling for any potential changes that will reload the SSL context. However only newer connections established after the reload will use the reloaded SSL context.
        Returns:
        true if SSL Context needs to be reload; false otherwise