Package org.apache.hadoop.hbase.security
Class TestHBaseSaslRpcClient
java.lang.Object
org.apache.hadoop.hbase.security.TestHBaseSaslRpcClient
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
(package private) static final String
(package private) static final String
private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
private boolean
private org.apache.hadoop.hbase.security.HBaseSaslRpcClient
private org.apache.hadoop.hbase.security.HBaseSaslRpcClient
private org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>
private org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>
createTokenMockWithCredentials
(String principal, String password) void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
DEFAULT_USER_NAME
- See Also:
-
DEFAULT_USER_PASSWORD
- See Also:
-
LOG
-
-
Constructor Details
-
TestHBaseSaslRpcClient
public TestHBaseSaslRpcClient()
-
-
Method Details
-
testSaslClientUsesGivenRpcProtection
- Throws:
Exception
-
testDigestSaslClientCallbackHandler
- Throws:
UnsupportedCallbackException
-
testDigestSaslClientCallbackHandlerWithException
-
testHBaseSaslRpcClientCreation
- Throws:
Exception
-
testAuthMethodReadWrite
- Throws:
IOException
-
assertAuthMethodRead
private void assertAuthMethodRead(org.apache.hadoop.io.DataInputBuffer in, org.apache.hadoop.hbase.security.AuthMethod authMethod) throws IOException - Throws:
IOException
-
assertAuthMethodWrite
private void assertAuthMethodWrite(org.apache.hadoop.io.DataOutputBuffer out, org.apache.hadoop.hbase.security.AuthMethod authMethod) throws IOException - Throws:
IOException
-
assertIOExceptionWhenGetStreamsBeforeConnectCall
private boolean assertIOExceptionWhenGetStreamsBeforeConnectCall(String principal, String password) throws IOException - Throws:
IOException
-
assertIOExceptionThenSaslClientIsNull
-
assertSuccessCreationKerberos
-
assertSuccessCreationDigestPrincipal
-
assertSuccessCreationSimple
-
createSaslRpcClientForKerberos
private org.apache.hadoop.hbase.security.HBaseSaslRpcClient createSaslRpcClientForKerberos() throws IOException- Throws:
IOException
-
createTokenMockWithCredentials
private org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> createTokenMockWithCredentials(String principal, String password) throws IOException - Throws:
IOException
-
createSaslRpcClientSimple
private org.apache.hadoop.hbase.security.HBaseSaslRpcClient createSaslRpcClientSimple() throws IOException- Throws:
IOException
-
createTokenMock
private org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> createTokenMock()
-