@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/4151") public final class AltsChannelBuilder extends io.grpc.ForwardingChannelBuilder<AltsChannelBuilder>
ManagedChannelBuilder. This class sets up a secure and authenticated
commmunication between two cloud VMs using ALTS.| Modifier and Type | Method and Description |
|---|---|
AltsChannelBuilder |
addTargetServiceAccount(String targetServiceAccount)
Adds an expected target service accounts.
|
io.grpc.ManagedChannel |
build() |
protected io.grpc.netty.NettyChannelBuilder |
delegate() |
AltsChannelBuilder |
enableUntrustedAltsForTesting()
Enables untrusted ALTS for testing.
|
static AltsChannelBuilder |
forAddress(String name,
int port)
"Overrides" the static method in
ManagedChannelBuilder. |
static AltsChannelBuilder |
forTarget(String target)
"Overrides" the static method in
ManagedChannelBuilder. |
AltsChannelBuilder |
setHandshakerAddressForTesting(String handshakerAddress)
Sets a new handshaker service address for testing.
|
blockingExecutor, compressorRegistry, decompressorRegistry, defaultLoadBalancingPolicy, defaultServiceConfig, directExecutor, disableRetry, disableServiceConfigLookUp, enableFullStreamDecompression, enableRetry, executor, idleTimeout, intercept, intercept, keepAliveTime, keepAliveTimeout, keepAliveWithoutCalls, maxHedgedAttempts, maxInboundMessageSize, maxInboundMetadataSize, maxRetryAttempts, maxTraceEvents, nameResolverFactory, offloadExecutor, overrideAuthority, perRpcBufferLimit, proxyDetector, retryBufferSize, setBinaryLog, thisT, toString, usePlaintext, userAgent, useTransportSecuritypublic static final AltsChannelBuilder forTarget(String target)
ManagedChannelBuilder.public static AltsChannelBuilder forAddress(String name, int port)
ManagedChannelBuilder.public AltsChannelBuilder addTargetServiceAccount(String targetServiceAccount)
public AltsChannelBuilder enableUntrustedAltsForTesting()
public AltsChannelBuilder setHandshakerAddressForTesting(String handshakerAddress)
protected io.grpc.netty.NettyChannelBuilder delegate()
delegate in class io.grpc.ForwardingChannelBuilder<AltsChannelBuilder>public io.grpc.ManagedChannel build()
build in class io.grpc.ForwardingChannelBuilder<AltsChannelBuilder>