Package io.grpc.alts

Class FailingCallCredentials


  • final class FailingCallCredentials
    extends io.grpc.CallCredentials
    CallCredentials that always fail the RPC.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.grpc.CallCredentials

        io.grpc.CallCredentials.MetadataApplier, io.grpc.CallCredentials.RequestInfo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private io.grpc.Status status  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void applyRequestMetadata​(io.grpc.CallCredentials.RequestInfo requestInfo, java.util.concurrent.Executor appExecutor, io.grpc.CallCredentials.MetadataApplier applier)  
      • Methods inherited from class io.grpc.CallCredentials

        thisUsesUnstableApi
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • status

        private final io.grpc.Status status
    • Constructor Detail

      • FailingCallCredentials

        public FailingCallCredentials​(io.grpc.Status status)
    • Method Detail

      • applyRequestMetadata

        public void applyRequestMetadata​(io.grpc.CallCredentials.RequestInfo requestInfo,
                                         java.util.concurrent.Executor appExecutor,
                                         io.grpc.CallCredentials.MetadataApplier applier)
        Specified by:
        applyRequestMetadata in class io.grpc.CallCredentials