Changeset 36211 in osm for applications/editors/josm/plugins/sds/src
- Timestamp:
- 2024-02-21T22:06:26+01:00 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsCredentialAgent.java
r36051 r36211 13 13 14 14 import org.openstreetmap.josm.data.oauth.IOAuthToken; 15 import org.openstreetmap.josm.data.oauth.OAuthToken;16 15 import org.openstreetmap.josm.gui.io.CredentialDialog; 17 16 import org.openstreetmap.josm.gui.widgets.HtmlPanel; … … 83 82 } 84 83 85 /**86 * Lookup the current OAuth Access Token to access the OSM server. Replies null, if no87 * Access Token is currently managed by this CredentialManager.88 *89 * @return the current OAuth Access Token to access the OSM server.90 */91 @Override92 public OAuthToken lookupOAuthAccessToken() {93 String accessTokenKey = Config.getPref().get("oauth.access-token.key", null);94 String accessTokenSecret = Config.getPref().get("oauth.access-token.secret", null);95 if (accessTokenKey == null && accessTokenSecret == null)96 return null;97 return new OAuthToken(accessTokenKey, accessTokenSecret);98 }99 100 84 @Override 101 85 public IOAuthToken lookupOAuthAccessToken(String host) { … … 125 109 public String getSaveUsernameAndPasswordCheckboxText() { 126 110 return tr("Save user and password (unencrypted)"); 127 }128 129 @Override130 public void storeOAuthAccessToken(OAuthToken accessToken) {131 // no-op132 111 } 133 112
Note:
See TracChangeset
for help on using the changeset viewer.