public class OAuth2TokenResponse extends Object
| Constructor and Description |
|---|
OAuth2TokenResponse(String accessToken,
long expiredInSeconds,
String refreshToken) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
An OAuth2 access token.
|
DecodedJwt |
getDecodedAccessToken()
A decoded OAuth2 access token.
|
java.time.Instant |
getExpiredAt()
Returns the moment in time when the token will be expired.
|
Date |
getExpiredAtDate()
Deprecated.
use
getExpiredAt(). |
String |
getRefreshToken()
An OAuth2 refresh token.
|
String |
toString() |
@Nullable public String getAccessToken()
@Nullable public DecodedJwt getDecodedAccessToken()
@Deprecated public Date getExpiredAtDate()
getExpiredAt().public java.time.Instant getExpiredAt()
@Nullable public String getRefreshToken()
Copyright © 2020. All rights reserved.