OAuthToken

Inheritance: java.lang.Object

public class OAuthToken

Contains OAuth token data such like token value, token type, expiration date.

Constructors

ConstructorDescription
OAuthToken(String token)Initializes a new instance of the OAuthToken class
OAuthToken(String token, Date expirationDate)Initializes a new instance of the OAuthToken class
OAuthToken(String token, int tokenType, Date expirationDate)Initializes a new instance of the OAuthToken class

Methods

MethodDescription
equals(Object obj)Determines whether the specified object is equal to the current object.
getClass()
getExpirationDate()Gets expiration date of the token.
getExpired()Indicates whether token is expired
getToken()Gets token value
getTokenType()Gets OAuth token type
hashCode()Serves as a hash function for a particular type.
notify()
notifyAll()
toString()Returns a string that represents the current object.
wait()
wait(long arg0)
wait(long arg0, int arg1)

OAuthToken(String token)

public OAuthToken(String token)

Initializes a new instance of the OAuthToken class

Parameters:

ParameterTypeDescription
tokenjava.lang.StringRefresh token value

OAuthToken(String token, Date expirationDate)

public OAuthToken(String token, Date expirationDate)

Initializes a new instance of the OAuthToken class

Parameters:

ParameterTypeDescription
tokenjava.lang.StringAccess token value
expirationDatejava.util.DateExpiration date of the token.

OAuthToken(String token, int tokenType, Date expirationDate)

public OAuthToken(String token, int tokenType, Date expirationDate)

Initializes a new instance of the OAuthToken class

Parameters:

ParameterTypeDescription
tokenjava.lang.StringToken value
tokenTypeintOAuth token type
expirationDatejava.util.DateExpiration date of the token.

equals(Object obj)

public boolean equals(Object obj)

Determines whether the specified object is equal to the current object.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe object to compare with the current object.

Returns: boolean - true if the specified object is equal to the current object; otherwise, false.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getExpirationDate()

public final Date getExpirationDate()

Gets expiration date of the token.

Returns: java.util.Date

getExpired()

public final boolean getExpired()

Indicates whether token is expired

Returns: boolean

getToken()

public final String getToken()

Gets token value

Returns: java.lang.String

getTokenType()

public final int getTokenType()

Gets OAuth token type

Returns: int

hashCode()

public int hashCode()

Serves as a hash function for a particular type.

Returns: int - A hash code for the current object.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - A string that represents the current object.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int