Changeset 18991 in josm for trunk/src/org/openstreetmap/josm/io/auth/CredentialsAgent.java
- Timestamp:
- 2024-02-21T21:26:18+01:00 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/auth/CredentialsAgent.java
r18877 r18991 7 7 8 8 import org.openstreetmap.josm.data.oauth.IOAuthToken; 9 import org.openstreetmap.josm.data.oauth.OAuthToken;10 9 11 10 import jakarta.annotation.Nullable; … … 65 64 * @return the current OAuth Access Token to access the OSM server. 66 65 * @throws CredentialsAgentException if something goes wrong 66 * @deprecated since 18991 -- OAuth 1.0 is being removed from the OSM API 67 67 */ 68 OAuthToken lookupOAuthAccessToken() throws CredentialsAgentException; 68 @Deprecated 69 default IOAuthToken lookupOAuthAccessToken() throws CredentialsAgentException { 70 throw new CredentialsAgentException("Call to deprecated method"); 71 } 69 72 70 73 /** … … 85 88 * @param accessToken the access Token. null, to remove the Access Token. 86 89 * @throws CredentialsAgentException if something goes wrong 90 * @deprecated since 18991 -- OAuth 1.0 is being removed from the OSM API 87 91 */ 88 void storeOAuthAccessToken(OAuthToken accessToken) throws CredentialsAgentException; 92 @Deprecated 93 default void storeOAuthAccessToken(IOAuthToken accessToken) throws CredentialsAgentException { 94 throw new CredentialsAgentException("Call to deprecated method"); 95 } 89 96 90 97 /** … … 93 100 * @param host The host the access token is for 94 101 * @param accessToken the access Token. null, to remove the Access Token. This will remove all IOAuthTokens <i>not</i> managed by 95 * {@link #storeOAuthAccessToken( OAuthToken)}.102 * {@link #storeOAuthAccessToken(IOAuthToken)}. 96 103 * @throws CredentialsAgentException if something goes wrong 97 104 * @since 18650
Note:
See TracChangeset
for help on using the changeset viewer.