Package org.scribe.model
Class Token
- java.lang.Object
-
- org.scribe.model.Token
-
- All Implemented Interfaces:
Serializable
public class Token extends Object implements Serializable
Represents an OAuth token (either request or access token) and its secret- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Tokenempty()Factory method that returns an empty token (token = "", secret = "").booleanequals(Object o)StringgetRawResponse()StringgetSecret()StringgetToken()inthashCode()booleanisEmpty()Returns true if the token is empty (token = "", secret = "")StringtoString()
-
-
-
Method Detail
-
getToken
public String getToken()
-
getSecret
public String getSecret()
-
getRawResponse
public String getRawResponse()
-
isEmpty
public boolean isEmpty()
Returns true if the token is empty (token = "", secret = "")
-
empty
public static Token empty()
Factory method that returns an empty token (token = "", secret = ""). Useful for two legged OAuth.
-
-