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 Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private io.grpc.internal.ObjectPool
<io.grpc.Channel> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.ServerCredentials
build()
(package private) io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator
Enables untrusted ALTS for testing.setHandshakerAddressForTesting
(String handshakerAddress) Sets a new handshaker service address for testing.
-
Field Details
-
handshakerChannelPool
private io.grpc.internal.ObjectPool<io.grpc.Channel> handshakerChannelPool -
enableUntrustedAlts
private boolean enableUntrustedAlts
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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.ServerCredentials build() -
buildProtocolNegotiator
io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator buildProtocolNegotiator()
-