public class TestTokenAuthentication extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestTokenAuthentication.NonShadedBlockingRpcCallback<R>
A copy of the BlockingRpcCallback class for use locally.
|
private static class |
TestTokenAuthentication.TokenServer
Basic server process for RPC authentication testing
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.ClusterId |
clusterId |
String |
rpcServerImpl |
private org.apache.hadoop.hbase.security.token.AuthenticationTokenSecretManager |
secretManager |
private TestTokenAuthentication.TokenServer |
server |
private Thread |
serverThread |
private HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestTokenAuthentication() |
Modifier and Type | Method and Description |
---|---|
static Collection<Object[]> |
parameters() |
void |
setUp() |
void |
tearDown() |
void |
testTokenCreation() |
void |
testUseExistingToken() |
public static final HBaseClassTestRule CLASS_RULE
public String rpcServerImpl
private HBaseTestingUtility TEST_UTIL
private TestTokenAuthentication.TokenServer server
private Thread serverThread
private org.apache.hadoop.hbase.security.token.AuthenticationTokenSecretManager secretManager
private org.apache.hadoop.hbase.ClusterId clusterId
public TestTokenAuthentication()
public static Collection<Object[]> parameters()
public void testTokenCreation() throws Exception
Exception
public void testUseExistingToken() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.