KuneAuthProvider implements AuthProvider { public static void main(final String[] args) throws UnauthorizedException { if (args.length == 4) { final String publicUrl = args[0]; final Boolean ssl = Boolean.parseBoolean(args[1]); final String user = args[2]; final String pass = args[3]; final KuneAuthProvider auth = new KuneAuthProvider(publicUrl, ssl); auth.authenticate(user, pass); } else { LOG.error("Params: <public address:port> <useSsl> <user> <pass>"); } } KuneAuthProvider();  KuneAuthProvider(final String publicAddress, final Boolean ssl); static void main(final String[] args); @Override void authenticate(final String username, final String passwdOrToken); @Override int getIterations(final String arg0); @Override String getPassword(final String arg0); @Override String getSalt(final String arg0); @Override String getServerKey(final String arg0); @Override String getStoredKey(final String arg0); @Override boolean isScramSupported(); @Override void setPassword(final String arg0, final String arg1); @Override boolean supportsPasswordRetrieval(); static final Log LOG; }
@Test public void maintest() throws UnauthorizedException, ConnectionException, InternalUnauthenticatedException, MalformedURLException, ClassNotFoundException, IllegalAccessException, InstantiationException { final KuneAuthProvider auth = new KuneAuthProvider(); auth.authenticate("admin", "easyeasy"); }