public class OAuth2TokenResponse extends Object
| Constructor and Description |
|---|
OAuth2TokenResponse(String accessToken,
long expiredInSeconds,
String refreshToken) |
OAuth2TokenResponse(String accessToken,
long expiredInSeconds,
String refreshToken,
String tokenType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
An OAuth2 access token.
|
DecodedJwt |
getDecodedAccessToken()
A decoded OAuth2 access token.
|
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 |
getTokenType() |
String |
toString() |
public OAuth2TokenResponse(@Nullable String accessToken, long expiredInSeconds, @Nullable String refreshToken)
@Nullable public String getAccessToken()
@Nullable public DecodedJwt getDecodedAccessToken()
@Deprecated public Date getExpiredAtDate()
getExpiredAt().public Instant getExpiredAt()
@Nullable public String getRefreshToken()
public String getTokenType()
Copyright © 2021. All rights reserved.