Class TestTokenAuthentication.TokenServer
java.lang.Object
org.apache.hadoop.hbase.security.token.TokenProvider
org.apache.hadoop.hbase.security.token.TestTokenAuthentication.TokenServer
- All Implemented Interfaces:
Runnable
,org.apache.hadoop.hbase.Abortable
,org.apache.hadoop.hbase.Coprocessor
,org.apache.hadoop.hbase.coprocessor.RegionCoprocessor
,org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService.BlockingInterface
,org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface
,org.apache.hadoop.hbase.Server
,org.apache.hadoop.hbase.Stoppable
- Enclosing class:
- TestTokenAuthentication
private static class TestTokenAuthentication.TokenServer
extends org.apache.hadoop.hbase.security.token.TokenProvider
implements org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService.BlockingInterface, Runnable, org.apache.hadoop.hbase.Server
Basic server process for RPC authentication testing
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
org.apache.hadoop.hbase.Coprocessor.State
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private org.apache.hadoop.conf.Configuration
private InetSocketAddress
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.ipc.RpcServerInterface
private org.apache.hadoop.hbase.util.Sleeper
private long
private boolean
private boolean
private HBaseTestingUtility
private org.apache.hadoop.hbase.zookeeper.ZKWatcher
Fields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
-
Constructor Summary
ConstructorDescriptionTokenServer
(org.apache.hadoop.conf.Configuration conf, HBaseTestingUtility TEST_UTIL) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.apache.hadoop.hbase.client.Connection
createConnection
(org.apache.hadoop.conf.Configuration conf) org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenResponse
getAuthenticationToken
(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenRequest request) org.apache.hadoop.hbase.ChoreService
org.apache.hadoop.hbase.client.ClusterConnection
org.apache.hadoop.conf.Configuration
org.apache.hadoop.hbase.client.ClusterConnection
org.apache.hadoop.hbase.CoordinatedStateManager
org.apache.hadoop.fs.FileSystem
org.apache.hadoop.security.token.SecretManager<? extends org.apache.hadoop.security.token.TokenIdentifier>
org.apache.hadoop.hbase.ServerName
org.apache.hadoop.hbase.zookeeper.ZKWatcher
private void
boolean
boolean
boolean
boolean
void
run()
void
org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse
whoAmI
(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest request) Methods inherited from class org.apache.hadoop.hbase.security.token.TokenProvider
getAuthenticationToken, getServices, start, stop, whoAmI
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.Abortable
abort
Methods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionCoprocessor
getBulkLoadObserver, getEndpointObserver, getRegionObserver
-
Field Details
-
LOG
-
conf
-
TEST_UTIL
-
rpcServer
-
isa
-
zookeeper
-
sleeper
-
started
-
aborted
-
stopped
-
startcode
-
-
Constructor Details
-
TokenServer
public TokenServer(org.apache.hadoop.conf.Configuration conf, HBaseTestingUtility TEST_UTIL) throws IOException - Throws:
IOException
-
-
Method Details
-
getConfiguration
- Specified by:
getConfiguration
in interfaceorg.apache.hadoop.hbase.Server
-
getConnection
- Specified by:
getConnection
in interfaceorg.apache.hadoop.hbase.Server
-
getZooKeeper
- Specified by:
getZooKeeper
in interfaceorg.apache.hadoop.hbase.Server
-
getCoordinatedStateManager
- Specified by:
getCoordinatedStateManager
in interfaceorg.apache.hadoop.hbase.Server
-
isAborted
- Specified by:
isAborted
in interfaceorg.apache.hadoop.hbase.Abortable
-
getServerName
- Specified by:
getServerName
in interfaceorg.apache.hadoop.hbase.Server
-
getFileSystem
- Specified by:
getFileSystem
in interfaceorg.apache.hadoop.hbase.Server
-
isStopping
- Specified by:
isStopping
in interfaceorg.apache.hadoop.hbase.Server
-
abort
- Specified by:
abort
in interfaceorg.apache.hadoop.hbase.Abortable
-
initialize
- Throws:
IOException
-
run
-
isStarted
-
stop
- Specified by:
stop
in interfaceorg.apache.hadoop.hbase.Stoppable
-
isStopped
- Specified by:
isStopped
in interfaceorg.apache.hadoop.hbase.Stoppable
-
getAddress
-
getSecretManager
public org.apache.hadoop.security.token.SecretManager<? extends org.apache.hadoop.security.token.TokenIdentifier> getSecretManager() -
getAuthenticationToken
public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenResponse getAuthenticationToken(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenRequest request) throws com.google.protobuf.ServiceException - Specified by:
getAuthenticationToken
in interfaceorg.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService.BlockingInterface
- Throws:
com.google.protobuf.ServiceException
-
whoAmI
public org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIResponse whoAmI(com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.WhoAmIRequest request) throws com.google.protobuf.ServiceException - Specified by:
whoAmI
in interfaceorg.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos.AuthenticationService.BlockingInterface
- Throws:
com.google.protobuf.ServiceException
-
getChoreService
- Specified by:
getChoreService
in interfaceorg.apache.hadoop.hbase.Server
-
getClusterConnection
- Specified by:
getClusterConnection
in interfaceorg.apache.hadoop.hbase.Server
-
createConnection
public org.apache.hadoop.hbase.client.Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException - Specified by:
createConnection
in interfaceorg.apache.hadoop.hbase.Server
- Throws:
IOException
-