keith-turner commented on code in PR #3440:
URL: https://github.com/apache/accumulo/pull/3440#discussion_r1211797793
##########
shell/src/main/java/org/apache/accumulo/shell/Shell.java:
##########
@@ -189,6 +189,16 @@
*/
@AutoService(KeywordExecutable.class)
public class Shell extends ShellOptions implements KeywordExecutable {
+
+ public static interface Authenticator {
+ default boolean authenticateUser(AccumuloClient client, String principal,
+ AuthenticationToken token) throws AccumuloException,
AccumuloSecurityException {
+ return client.securityOperations().authenticateUser(principal, token);
+ }
+ }
+
+ public static Authenticator AUTHENTICATOR = new Authenticator() {};
Review Comment:
ok after looking at the PR that is what I suspected. When I first saw
`AUTHENTICATOR` I was wondering why it could not be replaced with a static
method.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]