com.scalar.admin.TlsRequestCoordinator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalar-admin Show documentation
Show all versions of scalar-admin Show documentation
An admin interface and tool for Scalar services.
The newest version!
package com.scalar.admin;
import java.net.InetSocketAddress;
import java.util.List;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
@Immutable
public class TlsRequestCoordinator extends RequestCoordinator {
@Nullable private final String caRootCert;
@Nullable private final String overrideAuthority;
public TlsRequestCoordinator(
String srvServiceUrl, @Nullable String caRootCert, @Nullable String overrideAuthority) {
super(srvServiceUrl);
this.caRootCert = caRootCert;
this.overrideAuthority = overrideAuthority;
}
public TlsRequestCoordinator(
List addresses,
@Nullable String caRootCert,
@Nullable String overrideAuthority) {
super(addresses);
this.caRootCert = caRootCert;
this.overrideAuthority = overrideAuthority;
}
@Override
AdminClient getClient(String host, int port) {
return new AdminClient(host, port, caRootCert, overrideAuthority);
}
}