Class OAuthToken


  • public class OAuthToken
    extends Object
    An oauth token that has been obtained by JOSM and can be used to authenticate the user on the server.
    • Constructor Detail

      • OAuthToken

        public OAuthToken​(String key,
                          String secret)
        Creates a new token
        Parameters:
        key - the token key
        secret - the token secret
    • Method Detail

      • createToken

        public static OAuthToken createToken​(oauth.signpost.OAuthConsumer consumer)
        Creates an OAuthToken from the token currently managed by the OAuthConsumer.
        Parameters:
        consumer - the consumer
        Returns:
        the token
      • getKey

        public String getKey()
        Replies the token key
        Returns:
        the token key
      • getSecret

        public String getSecret()
        Replies the token secret
        Returns:
        the token secret