Spring Social

org.springframework.social.oauth2
Class AccessGrant

java.lang.Object
  extended by org.springframework.social.oauth2.AccessGrant
All Implemented Interfaces:
java.io.Serializable

public class AccessGrant
extends java.lang.Object
implements java.io.Serializable

OAuth2 access token.

Author:
Keith Donald
See Also:
Serialized Form

Constructor Summary
AccessGrant(java.lang.String accessToken)
           
AccessGrant(java.lang.String accessToken, java.lang.String scope, java.lang.String refreshToken, java.lang.Integer expiresIn)
           
 
Method Summary
 java.lang.String getAccessToken()
          The access token value.
 java.lang.Long getExpireTime()
          The time (in milliseconds since Jan 1, 1970 UTC) when this access grant will expire.
 java.lang.String getRefreshToken()
          The refresh token that can be used to renew the access token.
 java.lang.String getScope()
          The scope of the access grant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessGrant

public AccessGrant(java.lang.String accessToken)

AccessGrant

public AccessGrant(java.lang.String accessToken,
                   java.lang.String scope,
                   java.lang.String refreshToken,
                   java.lang.Integer expiresIn)
Method Detail

getAccessToken

public java.lang.String getAccessToken()
The access token value.


getScope

public java.lang.String getScope()
The scope of the access grant. May be null if the provider doesn't return the granted scope in the response.


getRefreshToken

public java.lang.String getRefreshToken()
The refresh token that can be used to renew the access token. May be null if the provider does not support refresh tokens.


getExpireTime

public java.lang.Long getExpireTime()
The time (in milliseconds since Jan 1, 1970 UTC) when this access grant will expire. May be null if the token is non-expiring.


Spring Social