void configureServerCertificate() throws IOException {
        verifyWithSniMatchers(getRequestedServerName());
        if (isClient()) {
            return;
        }
        X509KeyManager keyManager = parameters.getX509KeyManager();
        if (keyManager != null) {
            for (String keyType : getCipherKeyTypes()) {
                try {
                    setCertificate(aliasChooser.chooseServerAlias(keyManager, keyType));
                } catch (CertificateEncodingException e) {
                    throw new IOException(e);
                }
            }
        }
    }
A utility wrapper that abstracts operations on the underlying native SSL instance.
common/src/main/java/org/conscrypt/NativeSsl.java