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

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

The newest version!
//
// 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;

/**
 * The unsafe trust that will trust all certificates without validation.
 */
@Immutable
@SingletonStyle
@JsonDeserialize(as = ImmutableTrustAll.class)
public abstract class TrustAll extends TrustBase {

    public static TrustAll of() {
        return ImmutableTrustAll.of();
    }

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

    @Override
    public final boolean contains(Trust trust) {
        return true;
    }

    @Override
    public final Trust or(Trust other) {
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy