Package org.apache.hadoop.hbase.security
Class TestHBaseSaslRpcClient
java.lang.Object
org.apache.hadoop.hbase.security.TestHBaseSaslRpcClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRule(package private) static final String(package private) static final Stringprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertAuthMethodRead(org.apache.hadoop.io.DataInputBuffer in, org.apache.hadoop.hbase.security.AuthMethod authMethod) private voidassertAuthMethodWrite(org.apache.hadoop.io.DataOutputBuffer out, org.apache.hadoop.hbase.security.AuthMethod authMethod) private booleanassertIOExceptionThenSaslClientIsNull(String principal, String password) private booleanassertIOExceptionWhenGetStreamsBeforeConnectCall(String principal, String password) private booleanassertSuccessCreationDigestPrincipal(String principal, String password) private booleanprivate booleanprivate org.apache.hadoop.hbase.security.HBaseSaslRpcClientprivate org.apache.hadoop.hbase.security.HBaseSaslRpcClientprivate 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) voidvoidvoidvoidvoid
-
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()
-