org.rx.net.socks.Authenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib Show documentation
Show all versions of rxlib Show documentation
A set of utilities for Java
package org.rx.net.socks;
import java.util.List;
public interface Authenticator {
Authenticator NON_AUTH = (u, p) -> SocksUser.ANONYMOUS;
static Authenticator dbAuth(List initUsers, Integer apiPort) {
return new DbAuthenticator(initUsers, apiPort);
}
SocksUser login(String username, String password);
}