Class RefreshableSslContext

java.lang.Object
io.netty.handler.ssl.SslContext
com.oracle.coherence.grpc.RefreshableSslContext
All Implemented Interfaces:
com.tangosol.internal.net.ssl.SSLContextDependencies.Listener

public class RefreshableSslContext extends io.netty.handler.ssl.SslContext implements com.tangosol.internal.net.ssl.SSLContextDependencies.Listener
A refreshable SslContext.
Since:
22.06.2
Author:
Jonathan Knight 2022.08.25
  • Constructor Summary

    Constructors
    Constructor
    Description
    RefreshableSslContext(com.tangosol.internal.net.ssl.SSLContextDependencies dependencies, boolean fServer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.handler.ssl.ApplicationProtocolNegotiator
     
     
    boolean
     
    newEngine(io.netty.buffer.ByteBufAllocator alloc)
     
    newEngine(io.netty.buffer.ByteBufAllocator alloc, String peerHost, int peerPort)
     
    void
    onError(com.tangosol.internal.net.ssl.SSLContextDependencies dependencies, Throwable t)
    Called when an error occurred updating the SSL context.
    void
    onUpdate(com.tangosol.internal.net.ssl.SSLContextDependencies dependencies)
    Called when the SSL context has been updated.
     

    Methods inherited from class io.netty.handler.ssl.SslContext

    attributes, buildKeyManagerFactory, buildKeyStore, buildTrustManagerFactory, buildTrustManagerFactory, buildTrustManagerFactory, defaultClientProvider, defaultServerProvider, generateKeySpec, isServer, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newHandler, newHandler, newHandler, newHandler, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, nextProtocols, sessionCacheSize, sessionTimeout, toPrivateKey, toPrivateKey, toX509Certificates, toX509Certificates

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RefreshableSslContext

      public RefreshableSslContext(com.tangosol.internal.net.ssl.SSLContextDependencies dependencies, boolean fServer)
  • Method Details

    • onUpdate

      public void onUpdate(com.tangosol.internal.net.ssl.SSLContextDependencies dependencies) throws GeneralSecurityException
      Description copied from interface: com.tangosol.internal.net.ssl.SSLContextDependencies.Listener
      Called when the SSL context has been updated.
      Specified by:
      onUpdate in interface com.tangosol.internal.net.ssl.SSLContextDependencies.Listener
      Parameters:
      dependencies - the updated dependencies
      Throws:
      GeneralSecurityException - if an error occurs
    • onError

      public void onError(com.tangosol.internal.net.ssl.SSLContextDependencies dependencies, Throwable t) throws KeyManagementException
      Description copied from interface: com.tangosol.internal.net.ssl.SSLContextDependencies.Listener
      Called when an error occurred updating the SSL context.
      Specified by:
      onError in interface com.tangosol.internal.net.ssl.SSLContextDependencies.Listener
      Parameters:
      dependencies - the updated dependencies
      Throws:
      KeyManagementException - if an error occurs
    • isClient

      public boolean isClient()
      Specified by:
      isClient in class io.netty.handler.ssl.SslContext
    • cipherSuites

      public List<String> cipherSuites()
      Specified by:
      cipherSuites in class io.netty.handler.ssl.SslContext
    • applicationProtocolNegotiator

      public io.netty.handler.ssl.ApplicationProtocolNegotiator applicationProtocolNegotiator()
      Specified by:
      applicationProtocolNegotiator in class io.netty.handler.ssl.SslContext
    • newEngine

      public SSLEngine newEngine(io.netty.buffer.ByteBufAllocator alloc)
      Specified by:
      newEngine in class io.netty.handler.ssl.SslContext
    • newEngine

      public SSLEngine newEngine(io.netty.buffer.ByteBufAllocator alloc, String peerHost, int peerPort)
      Specified by:
      newEngine in class io.netty.handler.ssl.SslContext
    • sessionContext

      public SSLSessionContext sessionContext()
      Specified by:
      sessionContext in class io.netty.handler.ssl.SslContext