Package | Description |
---|---|
org.openstreetmap.josm.data.oauth | |
org.openstreetmap.josm.gui.oauth |
Provides GUI classes for handling OAuth authentication to OSM API.
|
org.openstreetmap.josm.gui.preferences.server |
Provides classes for handling connection preferences, including server authentication and proxy settings.
|
org.openstreetmap.josm.io.auth |
Modifier and Type | Method and Description |
---|---|
static OAuthToken |
OAuthToken.createToken(OAuthConsumer consumer)
Creates an OAuthToken from the token currently managed by the
OAuthConsumer . |
Constructor and Description |
---|
OAuthToken(OAuthToken other)
Creates a clone of another token
|
Modifier and Type | Field and Description |
---|---|
private OAuthToken |
RetrieveAccessTokenTask.accessToken |
private OAuthToken |
AbstractAuthorizationUI.accessToken |
private OAuthToken |
SemiAutomaticAuthorizationUI.requestToken |
private OAuthToken |
RetrieveRequestTokenTask.requestToken |
private OAuthToken |
RetrieveAccessTokenTask.requestToken |
private OAuthToken |
TestAccessTokenTask.token |
Modifier and Type | Method and Description |
---|---|
OAuthToken |
OAuthAuthorizationWizard.getAccessToken()
Replies the Access Token entered using the wizard
|
OAuthToken |
RetrieveAccessTokenTask.getAccessToken()
Replies the retrieved Access Token.
|
OAuthToken |
AbstractAuthorizationUI.getAccessToken()
Replies the retrieved Access Token.
|
OAuthToken |
OsmOAuthAuthorizationClient.getAccessToken(ProgressMonitor monitor)
Submits a request for an Access Token to the Access Token Endpoint Url of the OAuth Service
Provider and replies the request token.
|
OAuthToken |
RetrieveRequestTokenTask.getRequestToken()
Replies the request token.
|
OAuthToken |
OsmOAuthAuthorizationClient.getRequestToken(ProgressMonitor monitor)
Submits a request for a Request Token to the Request Token Endpoint Url of the OAuth Service
Provider and replies the request token.
|
Modifier and Type | Method and Description |
---|---|
void |
OsmOAuthAuthorizationClient.authorise(OAuthToken requestToken,
java.lang.String userName,
java.lang.String password,
OsmPrivileges privileges,
ProgressMonitor monitor)
Automatically authorises a request token for a set of privileges.
|
protected void |
OsmOAuthAuthorizationClient.fetchOAuthToken(OsmOAuthAuthorizationClient.SessionId sessionId,
OAuthToken requestToken)
Submits a request to the OSM website for a OAuth form.
|
protected void |
AbstractAuthorizationUI.fireAccessTokenChanged(OAuthToken oldValue,
OAuthToken newValue) |
java.lang.String |
OsmOAuthAuthorizationClient.getAuthoriseUrl(OAuthToken requestToken)
Builds the authorise URL for a given Request Token.
|
protected void |
OsmOAuthAuthorizationClient.sendAuthorisationRequest(OsmOAuthAuthorizationClient.SessionId sessionId,
OAuthToken requestToken,
OsmPrivileges privileges) |
void |
AccessTokenInfoPanel.setAccessToken(OAuthToken token)
Displays the key and secret in
token . |
void |
SemiAutomaticAuthorizationUI.ShowAccessTokenPanel.setAccessToken(OAuthToken accessToken) |
protected void |
FullyAutomaticAuthorizationUI.setAccessToken(OAuthToken accessToken) |
protected void |
AbstractAuthorizationUI.setAccessToken(OAuthToken accessToken)
Sets the current Access Token.
|
void |
OAuthAuthorizationWizard.AcceptAccessTokenAction.updateEnabledState(OAuthToken token) |
Constructor and Description |
---|
OsmOAuthAuthorizationClient(OAuthParameters parameters,
OAuthToken requestToken)
Creates a new authorisation client with the parameters
parameters
and an already known Request Token. |
RetrieveAccessTokenTask(java.awt.Component parent,
OAuthParameters parameters,
OAuthToken requestToken)
Creates the task
|
TestAccessTokenTask(java.awt.Component parent,
java.lang.String apiUrl,
OAuthParameters parameters,
OAuthToken accessToken)
Create the task
|
Modifier and Type | Method and Description |
---|---|
OAuthToken |
OAuthAccessTokenHolder.getAccessToken()
Replies the access token.
|
Modifier and Type | Method and Description |
---|---|
void |
OAuthAccessTokenHolder.setAccessToken(OAuthToken token)
Sets the access token hold by this holder.
|
Modifier and Type | Method and Description |
---|---|
OAuthToken |
CredentialsManager.lookupOAuthAccessToken() |
OAuthToken |
CredentialsAgent.lookupOAuthAccessToken()
Lookup the current OAuth Access Token to access the OSM server.
|
OAuthToken |
JosmPreferencesCredentialAgent.lookupOAuthAccessToken()
Lookup the current OAuth Access Token to access the OSM server.
|
Modifier and Type | Method and Description |
---|---|
void |
CredentialsManager.storeOAuthAccessToken(OAuthToken accessToken) |
void |
CredentialsAgent.storeOAuthAccessToken(OAuthToken accessToken)
Stores the OAuth Access Token
accessToken . |
void |
JosmPreferencesCredentialAgent.storeOAuthAccessToken(OAuthToken accessToken)
Stores the OAuth Access Token
accessToken . |