Class AltsChannelCredentials.Builder
java.lang.Object
io.grpc.alts.AltsChannelCredentials.Builder
- Enclosing class:
AltsChannelCredentials
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4151")
public static final class AltsChannelCredentials.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTargetServiceAccount(String targetServiceAccount) Adds an expected target service accounts.io.grpc.ChannelCredentialsbuild()Enables untrusted ALTS for testing.setHandshakerAddressForTesting(String handshakerAddress) Sets a new handshaker service address for testing.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addTargetServiceAccount
Adds an expected target service accounts. One of the added service accounts should match peer service account in the handshaker result. Otherwise, the handshake fails. -
enableUntrustedAltsForTesting
Enables untrusted ALTS for testing. If this function is called, we will not check whether ALTS is running on Google Cloud Platform. -
setHandshakerAddressForTesting
Sets a new handshaker service address for testing. -
build
public io.grpc.ChannelCredentials build()
-