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 Details

    • handshakerChannelPool

      private io.grpc.internal.ObjectPool<io.grpc.Channel> handshakerChannelPool
    • enableUntrustedAlts

      private boolean enableUntrustedAlts
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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(String handshakerAddress)
      Sets a new handshaker service address for testing.
    • build

      public io.grpc.ServerCredentials build()
    • buildProtocolNegotiator

      io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator buildProtocolNegotiator()