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.Server,org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.AuthenticationService.BlockingInterface,org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface,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.shaded.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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate org.apache.hadoop.conf.Configurationprivate InetSocketAddressprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.ipc.RpcServerInterfaceprivate org.apache.hadoop.hbase.util.Sleeperprivate longprivate booleanprivate booleanprivate HBaseTestingUtilprivate org.apache.hadoop.hbase.zookeeper.ZKWatcherFields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION -
Constructor Summary
ConstructorsConstructorDescriptionTokenServer(org.apache.hadoop.conf.Configuration conf, HBaseTestingUtil TEST_UTIL) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.hadoop.hbase.client.ConnectioncreateConnection(org.apache.hadoop.conf.Configuration conf) org.apache.hadoop.hbase.client.AsyncClusterConnectionorg.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenResponsegetAuthenticationToken(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenRequest request) org.apache.hadoop.hbase.ChoreServiceorg.apache.hadoop.conf.Configurationorg.apache.hadoop.hbase.client.Connectionorg.apache.hadoop.hbase.CoordinatedStateManagerorg.apache.hadoop.fs.FileSystemorg.apache.hadoop.security.token.SecretManager<? extends org.apache.hadoop.security.token.TokenIdentifier>org.apache.hadoop.hbase.ServerNameorg.apache.hadoop.hbase.zookeeper.ZKWatcherprivate voidbooleanbooleanbooleanbooleanvoidrun()voidorg.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.WhoAmIResponsewhoAmI(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.WhoAmIRequest request) Methods inherited from class org.apache.hadoop.hbase.security.token.TokenProvider
getAuthenticationToken, getServices, start, stop, whoAmIMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Abortable
abortMethods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionCoprocessor
getBulkLoadObserver, getEndpointObserver, getRegionObserverMethods inherited from interface org.apache.hadoop.hbase.Server
getAsyncConnection
-
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, HBaseTestingUtil TEST_UTIL) throws IOException - Throws:
IOException
-
-
Method Details
-
getConfiguration
- Specified by:
getConfigurationin interfaceorg.apache.hadoop.hbase.Server
-
getConnection
- Specified by:
getConnectionin interfaceorg.apache.hadoop.hbase.Server
-
getZooKeeper
- Specified by:
getZooKeeperin interfaceorg.apache.hadoop.hbase.Server
-
getCoordinatedStateManager
- Specified by:
getCoordinatedStateManagerin interfaceorg.apache.hadoop.hbase.Server
-
isAborted
- Specified by:
isAbortedin interfaceorg.apache.hadoop.hbase.Abortable
-
getServerName
- Specified by:
getServerNamein interfaceorg.apache.hadoop.hbase.Server
-
getFileSystem
- Specified by:
getFileSystemin interfaceorg.apache.hadoop.hbase.Server
-
isStopping
- Specified by:
isStoppingin interfaceorg.apache.hadoop.hbase.Server
-
abort
- Specified by:
abortin interfaceorg.apache.hadoop.hbase.Abortable
-
initialize
- Throws:
IOException
-
run
-
isStarted
-
stop
- Specified by:
stopin interfaceorg.apache.hadoop.hbase.Stoppable
-
isStopped
- Specified by:
isStoppedin 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.shaded.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenResponse getAuthenticationToken(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Specified by:
getAuthenticationTokenin interfaceorg.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.AuthenticationService.BlockingInterface- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-
whoAmI
public org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.WhoAmIResponse whoAmI(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.WhoAmIRequest request) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Specified by:
whoAmIin interfaceorg.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.AuthenticationService.BlockingInterface- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-
getChoreService
- Specified by:
getChoreServicein interfaceorg.apache.hadoop.hbase.Server
-
createConnection
public org.apache.hadoop.hbase.client.Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException - Specified by:
createConnectionin interfaceorg.apache.hadoop.hbase.Server- Throws:
IOException
-
getAsyncClusterConnection
- Specified by:
getAsyncClusterConnectionin interfaceorg.apache.hadoop.hbase.Server
-