private Set<String> getCipherKeyTypes() {
        Set<String> keyTypes = new HashSet<>();
        for (long sslCipherNativePointer : NativeCrypto.SSL_get_ciphers(ssl, this)) {
            String keyType = SSLUtils.getServerX509KeyType(sslCipherNativePointer);
            if (keyType != null) {
                keyTypes.add(keyType);
            }
        }
        return keyTypes;
    }
A utility wrapper that abstracts operations on the underlying native SSL instance.
common/src/main/java/org/conscrypt/NativeSsl.java