Package proto.rpc.v1

Class AuthServiceGrpc.AuthServiceStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<AuthServiceGrpc.AuthServiceStub>
proto.rpc.v1.AuthServiceGrpc.AuthServiceStub
Enclosing class:
AuthServiceGrpc

public static final class AuthServiceGrpc.AuthServiceStub extends io.grpc.stub.AbstractAsyncStub<AuthServiceGrpc.AuthServiceStub>
A stub to allow clients to do asynchronous rpc calls to service AuthService.
 An AuthService is intended to be used as a means to perform application level
 authentication. Its sole Authenticate method should be used prior to any
 other services that a gRPC server has to offer.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    authenticate(Auth.AuthenticateRequest request, io.grpc.stub.StreamObserver<Auth.AuthenticateResponse> responseObserver)
    Authenticate attempts to authenticate the caller claiming to be the given entity.
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected AuthServiceGrpc.AuthServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<AuthServiceGrpc.AuthServiceStub>
    • authenticate

      public void authenticate(Auth.AuthenticateRequest request, io.grpc.stub.StreamObserver<Auth.AuthenticateResponse> responseObserver)
       Authenticate attempts to authenticate the caller claiming to be
       the given entity. The resulting response contains an access token
       with the subject as the entity and the audience/issuer as the
       provider of this service. This token should be used for all future
       RPC requests.