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 Type
    Method
    Description
    boolean
    authenticate(String userName, String password)
    Authenticates the user using the specified userName and password.
    The realm value to be used in the request for proxy authentication ("Proxy-Authenticate" header).
  • Method Details

    • 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:
      true if the credentials are acceptable, otherwise false.
    • 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.