Package proto.rpc.v1
Class AuthServiceGrpc.AuthServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<AuthServiceGrpc.AuthServiceFutureStub>
proto.rpc.v1.AuthServiceGrpc.AuthServiceFutureStub
- Enclosing class:
- AuthServiceGrpc
public static final class AuthServiceGrpc.AuthServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<AuthServiceGrpc.AuthServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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 TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<Auth.AuthenticateResponse>authenticate(Auth.AuthenticateRequest request) Authenticate attempts to authenticate the caller claiming to be the given entity.protected AuthServiceGrpc.AuthServiceFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected AuthServiceGrpc.AuthServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<AuthServiceGrpc.AuthServiceFutureStub>
-
authenticate
public com.google.common.util.concurrent.ListenableFuture<Auth.AuthenticateResponse> authenticate(Auth.AuthenticateRequest request) 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.
-