@InterfaceAudience.Private public class TokenProvider extends Object implements AuthenticationProtos.AuthenticationService.Interface, Coprocessor, CoprocessorService
AuthenticationProtos
AuthenticationService coprocessor service.Coprocessor.State
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
Constructor and Description |
---|
TokenProvider() |
Modifier and Type | Method and Description |
---|---|
void |
getAuthenticationToken(RpcController controller,
AuthenticationProtos.GetAuthenticationTokenRequest request,
RpcCallback<AuthenticationProtos.GetAuthenticationTokenResponse> done) |
Service |
getService() |
void |
start(CoprocessorEnvironment env) |
void |
stop(CoprocessorEnvironment env) |
void |
whoAmI(RpcController controller,
AuthenticationProtos.WhoAmIRequest request,
RpcCallback<AuthenticationProtos.WhoAmIResponse> done) |
public void start(CoprocessorEnvironment env)
start
in interface Coprocessor
public void stop(CoprocessorEnvironment env) throws IOException
stop
in interface Coprocessor
IOException
public Service getService()
getService
in interface CoprocessorService
public void getAuthenticationToken(RpcController controller, AuthenticationProtos.GetAuthenticationTokenRequest request, RpcCallback<AuthenticationProtos.GetAuthenticationTokenResponse> done)
getAuthenticationToken
in interface AuthenticationProtos.AuthenticationService.Interface
public void whoAmI(RpcController controller, AuthenticationProtos.WhoAmIRequest request, RpcCallback<AuthenticationProtos.WhoAmIResponse> done)
whoAmI
in interface AuthenticationProtos.AuthenticationService.Interface
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.