Package org.scribe.model
Class Token
- java.lang.Object
-
- org.scribe.model.Token
-
- All Implemented Interfaces:
java.io.Serializable
public class Token extends java.lang.Object implements java.io.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 Token
empty()
Factory method that returns an empty token (token = "", secret = "").boolean
equals(java.lang.Object o)
java.lang.String
getRawResponse()
java.lang.String
getSecret()
java.lang.String
getToken()
int
hashCode()
boolean
isEmpty()
Returns true if the token is empty (token = "", secret = "")java.lang.String
toString()
-
-
-
Method Detail
-
getToken
public java.lang.String getToken()
-
getSecret
public java.lang.String getSecret()
-
getRawResponse
public java.lang.String getRawResponse()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-