Package io.axoniq.axonserver.grpc.admin
Class AuthenticationServiceGrpc.AuthenticationServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<AuthenticationServiceGrpc.AuthenticationServiceStub>
-
- io.axoniq.axonserver.grpc.admin.AuthenticationServiceGrpc.AuthenticationServiceStub
-
- Enclosing class:
- AuthenticationServiceGrpc
public static final class AuthenticationServiceGrpc.AuthenticationServiceStub extends io.grpc.stub.AbstractAsyncStub<AuthenticationServiceGrpc.AuthenticationServiceStub>
A stub to allow clients to do asynchronous rpc calls to service AuthenticationService.AuthenticationService, allows to use Axon Server as authentication provider
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticateToken(Token request, io.grpc.stub.StreamObserver<ApplicationRoles> responseObserver)Authenticate based on an application token, returns the application's rolesvoidauthenticateUser(AuthenticateUserRequest request, io.grpc.stub.StreamObserver<UserRoles> responseObserver)Authenticate a user, returns the user's rolesprotected AuthenticationServiceGrpc.AuthenticationServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)-
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected AuthenticationServiceGrpc.AuthenticationServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<AuthenticationServiceGrpc.AuthenticationServiceStub>
-
authenticateUser
public void authenticateUser(AuthenticateUserRequest request, io.grpc.stub.StreamObserver<UserRoles> responseObserver)
Authenticate a user, returns the user's roles
-
authenticateToken
public void authenticateToken(Token request, io.grpc.stub.StreamObserver<ApplicationRoles> responseObserver)
Authenticate based on an application token, returns the application's roles
-
-