public final class DefaultAuthenticator extends Authenticator
CredentialsManager
.Authenticator.RequestorType
Modifier and Type | Field and Description |
---|---|
private Map<Authenticator.RequestorType,Boolean> |
credentialsTried |
private boolean |
enabled |
private static DefaultAuthenticator |
instance |
Modifier | Constructor and Description |
---|---|
private |
DefaultAuthenticator() |
Modifier and Type | Method and Description |
---|---|
static void |
createInstance()
Creates the unique instance
|
static DefaultAuthenticator |
getInstance()
Returns the unique instance
|
protected PasswordAuthentication |
getPasswordAuthentication()
Called by the Java HTTP stack when either the OSM API server or a proxy requires authentication.
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
private static volatile DefaultAuthenticator instance
private final Map<Authenticator.RequestorType,Boolean> credentialsTried
private boolean enabled
private DefaultAuthenticator()
public static DefaultAuthenticator getInstance()
public static void createInstance()
protected PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication
in class Authenticator
public boolean isEnabled()
public void setEnabled(boolean enabled)