Class NettyClientSslContextRefresher


  • public class NettyClientSslContextRefresher
    extends SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
    SSL context builder for Netty Client side.
    • Constructor Detail

      • NettyClientSslContextRefresher

        public NettyClientSslContextRefresher​(boolean allowInsecure,
                                              java.lang.String trustCertsFilePath,
                                              org.apache.pulsar.client.api.AuthenticationDataProvider authData,
                                              long delayInSeconds)
                                       throws java.io.IOException,
                                              java.security.GeneralSecurityException
        Throws:
        java.io.IOException
        java.security.GeneralSecurityException
    • Method Detail

      • update

        public io.netty.handler.ssl.SslContext update()
                                               throws javax.net.ssl.SSLException,
                                                      java.io.FileNotFoundException,
                                                      java.security.GeneralSecurityException,
                                                      java.io.IOException
        Description copied from class: SslContextAutoRefreshBuilder
        updates and returns cached SSLContext.
        Specified by:
        update in class SslContextAutoRefreshBuilder<io.netty.handler.ssl.SslContext>
        Returns:
        Throws:
        java.security.GeneralSecurityException
        java.io.IOException
        javax.net.ssl.SSLException
        java.io.FileNotFoundException