All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.ssl.config.ProtocolsIntermediate Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
/**
 * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
 */
package io.deephaven.ssl.config;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.deephaven.annotations.SingletonStyle;
import org.immutables.value.Value.Immutable;

import java.util.Arrays;
import java.util.List;

/**
 * Includes the protocols {@value #TLSV_1_3} and {@value #TLSV_1_2}.
 *
 * @see Intermediate
 *      compatibility
 */
@Immutable
@SingletonStyle
@JsonDeserialize(as = ImmutableProtocolsIntermediate.class)
public abstract class ProtocolsIntermediate implements Protocols {

    public static final String TLSV_1_3 = "TLSv1.3";

    public static final String TLSV_1_2 = "TLSv1.2";

    public static ProtocolsIntermediate of() {
        return ImmutableProtocolsIntermediate.of();
    }

    public final List protocols() {
        return Arrays.asList(TLSV_1_3, TLSV_1_2);
    }

    @Override
    public final  T walk(Visitor visitor) {
        return visitor.visit(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy