io.deephaven.ssl.config.IdentityPrivateKey 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.BuildableStyle;
import org.immutables.value.Value.Immutable;
import java.util.Optional;
/**
* The identity material configuration from a certificate and private key.
*/
@Immutable
@BuildableStyle
@JsonDeserialize(as = ImmutableIdentityPrivateKey.class)
public abstract class IdentityPrivateKey implements Identity {
public static Builder builder() {
return ImmutableIdentityPrivateKey.builder();
}
/**
* The certificate chain path.
*/
public abstract String certChainPath();
/**
* The private key path.
*/
public abstract String privateKeyPath();
/**
* The optional private key password.
*/
public abstract Optional privateKeyPassword();
/**
* The optional alias.
*/
public abstract Optional alias();
@Override
public final , T> T walk(V visitor) {
return visitor.visit(this);
}
public interface Builder {
Builder certChainPath(String certChainPath);
Builder privateKeyPath(String privateKeyPath);
Builder privateKeyPassword(String privateKeyPassword);
Builder alias(String alias);
IdentityPrivateKey build();
}
}