use of org.apache.cassandra.auth.PasswordAuthenticator.SaslNegotiator in project cassandra by apache.
the class PasswordAuthenticatorTest method testDecodeIllegalUserAndPwd.
private void testDecodeIllegalUserAndPwd(String username, String password) {
SaslNegotiator negotiator = authenticator.newSaslNegotiator(null);
Authenticator clientAuthenticator = (new PlainTextAuthProvider(username, password)).newAuthenticator((EndPoint) null, null);
negotiator.evaluateResponse(clientAuthenticator.initialResponse());
negotiator.getAuthenticatedUser();
}
Aggregations