org.apache.hadoop.hbase.security.token
Class TokenProvider

java.lang.Object
  extended by org.apache.hadoop.hbase.security.token.TokenProvider
All Implemented Interfaces:
Coprocessor, CoprocessorService, AuthenticationProtos.AuthenticationService.Interface

public class TokenProvider
extends Object
implements AuthenticationProtos.AuthenticationService.Interface, Coprocessor, CoprocessorService

Provides a service for obtaining authentication tokens via the AuthenticationProtos AuthenticationService coprocessor service.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
Coprocessor.State
 
Field Summary
 
Fields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
 
Constructor Summary
TokenProvider()
           
 
Method Summary
 void getAuthenticationToken(com.google.protobuf.RpcController controller, AuthenticationProtos.TokenRequest request, com.google.protobuf.RpcCallback<AuthenticationProtos.TokenResponse> done)
           
 com.google.protobuf.Service getService()
           
 void start(CoprocessorEnvironment env)
           
 void stop(CoprocessorEnvironment env)
           
 void whoAmI(com.google.protobuf.RpcController controller, AuthenticationProtos.WhoAmIRequest request, com.google.protobuf.RpcCallback<AuthenticationProtos.WhoAmIResponse> done)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenProvider

public TokenProvider()
Method Detail

start

public void start(CoprocessorEnvironment env)
Specified by:
start in interface Coprocessor

stop

public void stop(CoprocessorEnvironment env)
          throws IOException
Specified by:
stop in interface Coprocessor
Throws:
IOException

getService

public com.google.protobuf.Service getService()
Specified by:
getService in interface CoprocessorService

getAuthenticationToken

public void getAuthenticationToken(com.google.protobuf.RpcController controller,
                                   AuthenticationProtos.TokenRequest request,
                                   com.google.protobuf.RpcCallback<AuthenticationProtos.TokenResponse> done)
Specified by:
getAuthenticationToken in interface AuthenticationProtos.AuthenticationService.Interface

whoAmI

public void whoAmI(com.google.protobuf.RpcController controller,
                   AuthenticationProtos.WhoAmIRequest request,
                   com.google.protobuf.RpcCallback<AuthenticationProtos.WhoAmIResponse> done)
Specified by:
whoAmI in interface AuthenticationProtos.AuthenticationService.Interface


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.