Package org.littleshoot.proxy
Interface ProxyAuthenticator
public interface ProxyAuthenticator
Interface for objects that can authenticate someone for using our Proxy on
the basis of a username and password.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(String userName, String password) Authenticates the user using the specified userName and password.getRealm()The realm value to be used in the request for proxy authentication ("Proxy-Authenticate" header).
-
Method Details
-
authenticate
Authenticates the user using the specified userName and password.- Parameters:
userName- The user name.password- The password.- Returns:
trueif the credentials are acceptable, otherwisefalse.
-
getRealm
String getRealm()The realm value to be used in the request for proxy authentication ("Proxy-Authenticate" header). Returning null will cause the string "Restricted Files" to be used by default.
-