|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.io.auth.AbstractCredentialsAgent
org.openstreetmap.josm.io.auth.JosmPreferencesCredentialAgent
public class JosmPreferencesCredentialAgent
This is the default credentials agent in JOSM. It keeps username and password for both the OSM API and an optional HTTP proxy in the JOSM preferences file.
Field Summary |
---|
Fields inherited from class org.openstreetmap.josm.io.auth.AbstractCredentialsAgent |
---|
memoryCredentialsCache |
Constructor Summary | |
---|---|
JosmPreferencesCredentialAgent()
|
Method Summary | |
---|---|
java.awt.Component |
getPreferencesDecorationPanel()
Provide a Panel that is shown below the API password / username fields in the JOSM Preferences. |
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. |
java.net.PasswordAuthentication |
lookup(java.net.Authenticator.RequestorType requestorType,
java.lang.String host)
Looks up the credentials for a given type. |
OAuthToken |
lookupOAuthAccessToken()
Lookup the current OAuth Access Token to access the OSM server. |
void |
store(java.net.Authenticator.RequestorType requestorType,
java.lang.String host,
java.net.PasswordAuthentication credentials)
Saves the credentials in credentials for the given service type. |
void |
storeOAuthAccessToken(OAuthToken accessToken)
Stores the OAuth Access Token accessToken . |
Methods inherited from class org.openstreetmap.josm.io.auth.AbstractCredentialsAgent |
---|
getCredentials |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JosmPreferencesCredentialAgent()
Method Detail |
---|
public java.net.PasswordAuthentication lookup(java.net.Authenticator.RequestorType requestorType, java.lang.String host) throws CredentialsAgentException
CredentialsAgent
CredentialsAgentException
- thrown if a problem occurs in a implementation of this interfaceCredentialsAgent#lookup(RequestorType)
public void store(java.net.Authenticator.RequestorType requestorType, java.lang.String host, java.net.PasswordAuthentication credentials) throws CredentialsAgentException
CredentialsAgent
credentials
for the given service type.
credentials
- the credentials
CredentialsAgentException
CredentialsAgent#store(RequestorType, PasswordAuthentication)
public OAuthToken lookupOAuthAccessToken() throws CredentialsAgentException
CredentialsAgentException
- thrown if something goes wrongpublic void storeOAuthAccessToken(OAuthToken accessToken) throws CredentialsAgentException
accessToken
.
accessToken
- the access Token. null, to remove the Access Token.
CredentialsAgentException
- thrown if something goes wrongpublic java.awt.Component getPreferencesDecorationPanel()
CredentialsAgent
public java.lang.String getSaveUsernameAndPasswordCheckboxText()
AbstractCredentialsAgent
getSaveUsernameAndPasswordCheckboxText
in class AbstractCredentialsAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |