public class Credential extends Object
CredentialCache
.Constructor and Description |
---|
Credential(String accessToken,
String refreshToken,
long expirationTimeMillis)
Constructs a new Credential.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken()
Returns the access token.
|
long |
getExpirationTimeMillis()
Returns the time at which the current access token expires.
|
String |
getRefreshToken()
Returns the refresh token, or null if there is none.
|
public Credential(String accessToken, String refreshToken, long expirationTimeMillis)
accessToken
- the OAuth2 access tokenrefreshToken
- the OAuth2 refresh token, or null if there is no refresh tokenexpirationTimeMillis
- the time at which the access token expirespublic String getAccessToken()
public String getRefreshToken()
public long getExpirationTimeMillis()
Copyright © 2015. All Rights Reserved.