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 java.lang.Object implements io.netty.internal.tcnative.CertificateCallback
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final OpenSslEngineMap
     
     

    Fields inherited from interface io.netty.internal.tcnative.CertificateCallback

    TLS_CT_DSS_FIXED_DH, TLS_CT_DSS_SIGN, TLS_CT_ECDSA_FIXED_ECDH, TLS_CT_ECDSA_SIGN, TLS_CT_RSA_FIXED_DH, TLS_CT_RSA_FIXED_ECDH, TLS_CT_RSA_SIGN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static java.lang.String
    clientKeyType(byte clientCertificateType)
     
    void
    handle(long ssl, byte[] keyTypeBytes, byte[][] asn1DerEncodedPrincipals)
     
    private static java.lang.String[]
    supportedClientKeyTypes(byte[] clientCertificateTypes)
    Gets the supported key types for client certificates.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • 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.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)