public abstract class AbstractCredentialsAgent extends java.lang.Object implements CredentialsAgent
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.net.Authenticator.RequestorType,java.net.PasswordAuthentication> |
memoryCredentialsCache |
Constructor and Description |
---|
AbstractCredentialsAgent() |
Modifier and Type | Method and Description |
---|---|
CredentialsAgentResponse |
getCredentials(java.net.Authenticator.RequestorType requestorType,
java.lang.String host,
boolean noSuccessWithLastResponse) |
abstract java.lang.String |
getSaveUsernameAndPasswordCheckboxText()
Provide the text for a checkbox that offers to save the
username and password that has been entered by the user.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreferencesDecorationPanel, lookup, lookupOAuthAccessToken, store, storeOAuthAccessToken
protected java.util.Map<java.net.Authenticator.RequestorType,java.net.PasswordAuthentication> memoryCredentialsCache
public AbstractCredentialsAgent()
public CredentialsAgentResponse getCredentials(java.net.Authenticator.RequestorType requestorType, java.lang.String host, boolean noSuccessWithLastResponse) throws CredentialsAgentException
getCredentials
in interface CredentialsAgent
requestorType
- the type of service. Authenticator.RequestorType.SERVER
for the OSM API server, Authenticator.RequestorType.PROXY
for a proxy serverhost
- the hostname for these credentialsnoSuccessWithLastResponse
- true, if the last request with the supplied credentials failed; false otherwise.
If true, implementations of this interface are advised to prompt the user for new credentials.CredentialsAgentException
- thrown if a problem occurs in a implementation of this interfacepublic abstract java.lang.String getSaveUsernameAndPasswordCheckboxText()