org.openstreetmap.josm.data.oauth
Class OAuthToken

java.lang.Object
  extended by org.openstreetmap.josm.data.oauth.OAuthToken

public class OAuthToken
extends java.lang.Object


Field Summary
private  java.lang.String key
           
private  java.lang.String secret
           
 
Constructor Summary
OAuthToken(OAuthToken other)
          Creates a clone of another token
OAuthToken(java.lang.String key, java.lang.String secret)
          Creates a new token
 
Method Summary
static OAuthToken createToken(OAuthConsumer consumer)
          Creates an OAuthToken from the token currently managed by the OAuthConsumer.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getKey()
          Replies the token key
 java.lang.String getSecret()
          Replies the token secret
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private java.lang.String key

secret

private java.lang.String secret
Constructor Detail

OAuthToken

public OAuthToken(java.lang.String key,
                  java.lang.String secret)
Creates a new token

Parameters:
key - the token key
secret - the token secret

OAuthToken

public OAuthToken(OAuthToken other)
           throws java.lang.IllegalArgumentException
Creates a clone of another token

Parameters:
other - the other token. Must not be null.
Throws:
java.lang.IllegalArgumentException - thrown if other is null
Method Detail

createToken

public static OAuthToken createToken(OAuthConsumer consumer)
Creates an OAuthToken from the token currently managed by the OAuthConsumer.

Parameters:
consumer - the consumer
Returns:
the token

getKey

public java.lang.String getKey()
Replies the token key

Returns:
the token key

getSecret

public java.lang.String getSecret()
Replies the token secret

Returns:
the token secret

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


JOSM