io.deephaven.ssl.config.TrustAll Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-ssl-config Show documentation
Show all versions of deephaven-ssl-config Show documentation
The Deephaven SSL Configuration
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;
}
}