public class ConstantAuthenticator extends Authenticator
Authenticator class using a
static user name and password for all requested sites.Authenticator.setDefault (new ConstantAuthenticator (user, pw));Authenticator.RequestorType| Modifier and Type | Field and Description |
|---|---|
static String |
DOMAIN_SEPARATOR |
| Constructor and Description |
|---|
ConstantAuthenticator(String sUserName,
String sPassword) |
ConstantAuthenticator(String sDomain,
String sUserName,
String sPassword) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPassword() |
PasswordAuthentication |
getPasswordAuthentication() |
String |
getUserName() |
String |
toString() |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefaultpublic static final String DOMAIN_SEPARATOR
public ConstantAuthenticator(@Nullable String sDomain, @Nonnull String sUserName, @Nonnull String sPassword)
@Nonnull public String getUserName()
null.public PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class AuthenticatorCopyright © 2016–2019 Philip Helger. All rights reserved.