public abstract class AbstractCredentialsAgent extends Object implements CredentialsAgent
| Modifier and Type | Field and Description |
|---|---|
protected Map<Authenticator.RequestorType,PasswordAuthentication> |
memoryCredentialsCache |
| Constructor and Description |
|---|
AbstractCredentialsAgent() |
| Modifier and Type | Method and Description |
|---|---|
CredentialsAgentResponse |
getCredentials(Authenticator.RequestorType requestorType,
String host,
boolean noSuccessWithLastResponse)
Returns the credentials needed to to access host.
|
abstract 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, waitgetPreferencesDecorationPanel, lookup, lookupOAuthAccessToken, store, storeOAuthAccessTokenprotected Map<Authenticator.RequestorType,PasswordAuthentication> memoryCredentialsCache
public AbstractCredentialsAgent()
public CredentialsAgentResponse getCredentials(Authenticator.RequestorType requestorType, String host, boolean noSuccessWithLastResponse) throws CredentialsAgentException
CredentialsAgentgetCredentials in interface CredentialsAgentrequestorType - 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 - if a problem occurs in a implementation of this interfacepublic abstract String getSaveUsernameAndPasswordCheckboxText()