Package io.axoniq.axonserver.grpc.admin
Class AuthenticationServiceGrpc.AuthenticationServiceBlockingV2Stub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<AuthenticationServiceGrpc.AuthenticationServiceBlockingV2Stub>
-
- io.axoniq.axonserver.grpc.admin.AuthenticationServiceGrpc.AuthenticationServiceBlockingV2Stub
-
- Enclosing class:
- AuthenticationServiceGrpc
public static final class AuthenticationServiceGrpc.AuthenticationServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<AuthenticationServiceGrpc.AuthenticationServiceBlockingV2Stub>
A stub to allow clients to do synchronous 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 ApplicationRolesauthenticateToken(Token request)Authenticate based on an application token, returns the application's rolesUserRolesauthenticateUser(AuthenticateUserRequest request)Authenticate a user, returns the user's rolesprotected AuthenticationServiceGrpc.AuthenticationServiceBlockingV2Stubbuild(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.AuthenticationServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<AuthenticationServiceGrpc.AuthenticationServiceBlockingV2Stub>
-
authenticateUser
public UserRoles authenticateUser(AuthenticateUserRequest request) throws io.grpc.StatusException
Authenticate a user, returns the user's roles
- Throws:
io.grpc.StatusException
-
authenticateToken
public ApplicationRoles authenticateToken(Token request) throws io.grpc.StatusException
Authenticate based on an application token, returns the application's roles
- Throws:
io.grpc.StatusException
-
-