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

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

//
// Copyright (c) 2016-2024 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 modern ciphers for TLSv1.3 and TLSv1.2.
 *
 * @see Modern compatibility
 */
@Immutable
@SingletonStyle
@JsonDeserialize(as = ImmutableCiphersModern.class)
public abstract class CiphersModern implements Ciphers {

    public static CiphersModern of() {
        return ImmutableCiphersModern.of();
    }

    public final List ciphers() {
        return Arrays.asList(
                // TLS 1.3
                "TLS_AES_256_GCM_SHA384",
                "TLS_AES_128_GCM_SHA256",
                "TLS_CHACHA20_POLY1305_SHA256");
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy