Interface NetworkAuthenticatorContext

    • Method Detail

      • getRequestingHost

        String getRequestingHost()
        Gets the hostname of the site or proxy requesting authentication, or null if not available.
        Returns:
        the requestingHost
      • getRequestingSite

        InetAddress getRequestingSite()
        Gets the InetAddress of the site requesting authorization, or null if not available.
        Returns:
        the requestingSite
      • getRequestingPort

        int getRequestingPort()
        Gets the port number for the requested connection.
        Returns:
        the requestingPort
      • getRequestingProtocol

        String getRequestingProtocol()
        Give the protocol that's requesting the connection.
        Returns:
        the requestingProtocol
      • getRequestingPrompt

        String getRequestingPrompt()
        Gets the prompt string given by the requestor.
        Returns:
        the requestingPrompt
      • getRequestingScheme

        String getRequestingScheme()
        Gets the scheme of the requestor (the HTTP scheme for an HTTP firewall, for example).
        Returns:
        the requestingScheme
      • getRequestingURL

        URL getRequestingURL()
        Returns the URL that resulted in this request for authentication.
        Returns:
        the requestingURL
      • getRequestingAuthType

        Authenticator.RequestorType getRequestingAuthType()
        Returns whether the requestor is a Proxy or a Server.
        Returns:
        the requestingAuthType