com.dropbox.client2.session
Class TokenPair
java.lang.Object
com.dropbox.client2.session.TokenPair
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AccessTokenPair, AppKeyPair
public abstract class TokenPair
- extends Object
- implements Serializable
Just two strings -- a "key" and a "secret". Used by OAuth in several
places (consumer key/secret, request token/secret, access token/secret).
Use specific subclasses instead of using this class directly.
- See Also:
- Serialized Form
key
public final String key
- The "key" portion of the pair. For example, the "consumer key",
"request token", or "access token". Will never contain the "|"
character.
secret
public final String secret
- The "secret" portion of the pair. For example, the "consumer secret",
"request token secret", or "access token secret".
TokenPair
public TokenPair(String key,
String secret)
- Parameters:
key - assigned to key.secret - assigned to secret.
- Throws:
IllegalArgumentException - if key or secret is null or invalid.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
equals
public boolean equals(TokenPair o)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.