Class ReferenceCountedOpenSslClientContext.OpenSslClientCertificateCallback

java.lang.Object
io.netty.handler.ssl.ReferenceCountedOpenSslClientContext.OpenSslClientCertificateCallback
All Implemented Interfaces:
io.netty.internal.tcnative.CertificateCallback
Enclosing class:
ReferenceCountedOpenSslClientContext

private static final class ReferenceCountedOpenSslClientContext.OpenSslClientCertificateCallback extends Object implements io.netty.internal.tcnative.CertificateCallback
  • Field Details

  • Constructor Details

  • Method Details

    • handle

      public void handle(long ssl, byte[] keyTypeBytes, byte[][] asn1DerEncodedPrincipals) throws Exception
      Specified by:
      handle in interface io.netty.internal.tcnative.CertificateCallback
      Throws:
      Exception
    • supportedClientKeyTypes

      private static Set<String> supportedClientKeyTypes(byte[] clientCertificateTypes)
      Gets the supported key types for client certificates.
      Parameters:
      clientCertificateTypes - ClientCertificateType values provided by the server. See https://www.ietf.org/assignments/tls-parameters/tls-parameters.xml.
      Returns:
      supported key types that can be used in X509KeyManager.chooseClientAlias and X509ExtendedKeyManager.chooseEngineClientAlias.
    • clientKeyType

      private static String clientKeyType(byte clientCertificateType)