public class TestHBaseSaslRpcClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
(package private) static String |
DEFAULT_USER_NAME |
(package private) static String |
DEFAULT_USER_PASSWORD |
org.junit.rules.ExpectedException |
exception |
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
TestHBaseSaslRpcClient() |
| Modifier and Type | Method and Description |
|---|---|
private void |
assertAuthMethodRead(org.apache.hadoop.io.DataInputBuffer in,
org.apache.hadoop.hbase.security.AuthMethod authMethod) |
private void |
assertAuthMethodWrite(org.apache.hadoop.io.DataOutputBuffer out,
org.apache.hadoop.hbase.security.AuthMethod authMethod) |
private boolean |
assertIOExceptionThenSaslClientIsNull(String principal,
String password) |
private boolean |
assertIOExceptionWhenGetStreamsBeforeConnectCall(String principal,
String password) |
private boolean |
assertSuccessCreationDigestPrincipal(String principal,
String password) |
private boolean |
assertSuccessCreationKerberos() |
private boolean |
assertSuccessCreationSimple() |
private org.apache.hadoop.hbase.security.HBaseSaslRpcClient |
createSaslRpcClientForKerberos() |
private org.apache.hadoop.hbase.security.HBaseSaslRpcClient |
createSaslRpcClientSimple() |
private org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> |
createTokenMock() |
private org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> |
createTokenMockWithCredentials(String principal,
String password) |
void |
testAuthMethodReadWrite() |
void |
testDigestSaslClientCallbackHandler() |
void |
testDigestSaslClientCallbackHandlerWithException() |
void |
testHBaseSaslRpcClientCreation() |
void |
testSaslClientUsesGivenRpcProtection() |
public static final HBaseClassTestRule CLASS_RULE
static final String DEFAULT_USER_NAME
static final String DEFAULT_USER_PASSWORD
private static final org.slf4j.Logger LOG
public org.junit.rules.ExpectedException exception
public TestHBaseSaslRpcClient()
public void testSaslClientUsesGivenRpcProtection() throws Exception
Exceptionpublic void testDigestSaslClientCallbackHandler() throws UnsupportedCallbackException
UnsupportedCallbackExceptionpublic void testDigestSaslClientCallbackHandlerWithException()
public void testHBaseSaslRpcClientCreation() throws Exception
Exceptionpublic void testAuthMethodReadWrite() throws IOException
IOExceptionprivate void assertAuthMethodRead(org.apache.hadoop.io.DataInputBuffer in, org.apache.hadoop.hbase.security.AuthMethod authMethod) throws IOException
IOExceptionprivate void assertAuthMethodWrite(org.apache.hadoop.io.DataOutputBuffer out, org.apache.hadoop.hbase.security.AuthMethod authMethod) throws IOException
IOExceptionprivate boolean assertIOExceptionWhenGetStreamsBeforeConnectCall(String principal, String password) throws IOException
IOExceptionprivate boolean assertIOExceptionThenSaslClientIsNull(String principal, String password)
private boolean assertSuccessCreationKerberos()
private boolean assertSuccessCreationDigestPrincipal(String principal, String password)
private boolean assertSuccessCreationSimple()
private org.apache.hadoop.hbase.security.HBaseSaslRpcClient createSaslRpcClientForKerberos() throws IOException
IOExceptionprivate org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> createTokenMockWithCredentials(String principal, String password) throws IOException
IOExceptionprivate org.apache.hadoop.hbase.security.HBaseSaslRpcClient createSaslRpcClientSimple() throws IOException
IOExceptionprivate org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> createTokenMock()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.