private void verifyWithSniMatchers(String serverName) throws SSLHandshakeException {
        if (!AddressUtils.isValidSniHostname(serverName)) {
            return;
        }

        if (!Platform.serverNamePermitted(parameters, serverName)) {
            throw new SSLHandshakeException("SNI match failed: " + serverName);
        }
    }
A utility wrapper that abstracts operations on the underlying native SSL instance.
common/src/main/java/org/conscrypt/NativeSsl.java