Class ReferenceCountedOpenSslClientContext.OpenSslClientCertificateCallback

  • All Implemented Interfaces:
    io.netty.internal.tcnative.CertificateCallback
    Enclosing class:
    ReferenceCountedOpenSslClientContext

    private static final class ReferenceCountedOpenSslClientContext.OpenSslClientCertificateCallback
    extends java.lang.Object
    implements io.netty.internal.tcnative.CertificateCallback
    • Method Detail

      • handle

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

        private static java.util.Set<java.lang.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 java.lang.String clientKeyType​(byte clientCertificateType)