Package io.grpc.alts
Class AltsServerCredentials.Builder
- java.lang.Object
-
- io.grpc.alts.AltsServerCredentials.Builder
-
- Enclosing class:
- AltsServerCredentials
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4151") public static final class AltsServerCredentials.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
enableUntrustedAlts
private io.grpc.internal.ObjectPool<io.grpc.Channel>
handshakerChannelPool
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.ServerCredentials
build()
(package private) io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator
buildProtocolNegotiator()
AltsServerCredentials.Builder
enableUntrustedAltsForTesting()
Enables untrusted ALTS for testing.AltsServerCredentials.Builder
setHandshakerAddressForTesting(java.lang.String handshakerAddress)
Sets a new handshaker service address for testing.
-
-
-
Method Detail
-
enableUntrustedAltsForTesting
public AltsServerCredentials.Builder enableUntrustedAltsForTesting()
Enables untrusted ALTS for testing. If this function is called, we will not check whether ALTS is running on Google Cloud Platform.
-
setHandshakerAddressForTesting
public AltsServerCredentials.Builder setHandshakerAddressForTesting(java.lang.String handshakerAddress)
Sets a new handshaker service address for testing.
-
build
public io.grpc.ServerCredentials build()
-
buildProtocolNegotiator
io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator buildProtocolNegotiator()
-
-