public static void setTlsV1DeprecationStatus(boolean deprecated, boolean supported) {
        if (deprecated) {
            TLSV12_PROTOCOLS = new String[] {
                    SUPPORTED_PROTOCOL_TLSV1_2,
            };
            TLSV13_PROTOCOLS = new String[] {
                    SUPPORTED_PROTOCOL_TLSV1_2,
                    SUPPORTED_PROTOCOL_TLSV1_3,
            };
        } else {
            TLSV12_PROTOCOLS = new String[] {
                    DEPRECATED_PROTOCOL_TLSV1,
                    DEPRECATED_PROTOCOL_TLSV1_1,
                    SUPPORTED_PROTOCOL_TLSV1_2,
            };
            TLSV13_PROTOCOLS = new String[] {
                    DEPRECATED_PROTOCOL_TLSV1,
                    DEPRECATED_PROTOCOL_TLSV1_1,
                    SUPPORTED_PROTOCOL_TLSV1_2,
                    SUPPORTED_PROTOCOL_TLSV1_3,
            };
        }
        if (supported) {
            SUPPORTED_PROTOCOLS = new String[] {
                    DEPRECATED_PROTOCOL_TLSV1,
                    DEPRECATED_PROTOCOL_TLSV1_1,
                    SUPPORTED_PROTOCOL_TLSV1_2,
                    SUPPORTED_PROTOCOL_TLSV1_3,
            };
        } else {
            SUPPORTED_PROTOCOLS = new String[] {
                    SUPPORTED_PROTOCOL_TLSV1_2,
                    SUPPORTED_PROTOCOL_TLSV1_3,
            };
        }
    }
Sets the local certificates and private key.

@param ssl the SSL reference.
@param encodedCertificates the encoded form of the local certificate chain.
@param pkey a reference to the private key.
@throws SSLException if a problem occurs setting the cert/key.
common/src/main/java/org/conscrypt/NativeCrypto.java