Package org.apache.ivy.util.url
Class IvyAuthenticator
java.lang.Object
java.net.Authenticator
org.apache.ivy.util.url.IvyAuthenticator
-
Nested Class Summary
Nested classes/interfaces inherited from class java.net.Authenticator
Authenticator.RequestorType
-
Method Summary
Modifier and TypeMethodDescriptionprotected PasswordAuthentication
static void
install()
Installs an IvyAuthenticator as default Authenticator.Methods inherited from class java.net.Authenticator
getDefault, getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthenticationInstance, setDefault
-
Method Details
-
install
public static void install()Installs an IvyAuthenticator as default Authenticator. Call this method before opening HTTP(S) connections to enable Ivy authentication. -
getPasswordAuthentication
- Overrides:
getPasswordAuthentication
in classAuthenticator
-