Package io.grpc.alts

Class 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 Detail

      • handshakerChannelPool

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

        private boolean enableUntrustedAlts
    • Constructor Detail

      • Builder

        public Builder()
    • 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()