Class RequestAuthenticator.Context
java.lang.Object
org.jsoup.helper.RequestAuthenticator.Context
- Enclosing interface:
RequestAuthenticator
Provides details for the request, to determine the appropriate credentials to return.
-
Method Summary
Modifier and TypeMethodDescriptioncredentials(String username, String password) Helper method to return a PasswordAuthentication object.booleanisProxy()Gets if the authentication request is for a proxy.booleanisServer()Gets if the authentication request is for a server.realm()Get the realm of the authentication request.type()url()Get the URL that is being requested.
-
Method Details
-
url
-
type
-
realm
-
isProxy
Gets if the authentication request is for a proxy.- Returns:
- true if type==proxy.
-
isServer
Gets if the authentication request is for a server.- Returns:
- true if type==server.
-
credentials
Helper method to return a PasswordAuthentication object.- Parameters:
username- username credentialpassword- password credential- Returns:
- a constructed PasswordAuthentication
-