Package org.littleshoot.proxy
Interface ProxyAuthenticator
-
public interface ProxyAuthenticatorInterface for objects that can authenticate someone for using our Proxy on the basis of a username and password.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthenticate(String userName, String password)Authenticates the user using the specified userName and password.StringgetRealm()The realm value to be used in the request for proxy authentication ("Proxy-Authenticate" header).
-
-
-
Method Detail
-
authenticate
boolean authenticate(String userName, String password)
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.
-
-