Package org.apache.ivy.util.url
Class IvyAuthenticator
- java.lang.Object
-
- java.net.Authenticator
-
- org.apache.ivy.util.url.IvyAuthenticator
-
public final class IvyAuthenticator extends java.net.Authenticator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.net.PasswordAuthentication
getPasswordAuthentication()
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 Detail
-
install
public static void install()
Installs an IvyAuthenticator as default Authenticator. Call this method before opening HTTP(S) connections to enable Ivy authentication.
-
getPasswordAuthentication
protected java.net.PasswordAuthentication getPasswordAuthentication()
- Overrides:
getPasswordAuthentication
in classjava.net.Authenticator
-
-