public final class StsTokenExchangeResponse extends Object
This class provides access to the exchanged access token, issued token type, token type, expiration time, refresh token (optional), scopes (optional), and the access boundary session key (optional).
Instances are immutable. Use newBuilder(String, String, String) to create an
instance.
| Modifier and Type | Class and Description |
|---|---|
static class |
StsTokenExchangeResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessBoundarySessionKey()
Returns the access boundary session key if present.
|
AccessToken |
getAccessToken() |
Long |
getExpiresInSeconds() |
String |
getIssuedTokenType() |
String |
getRefreshToken() |
List<String> |
getScopes() |
String |
getTokenType() |
static StsTokenExchangeResponse.Builder |
newBuilder(String accessToken,
String issuedTokenType,
String tokenType)
Returns a new
StsTokenExchangeResponse.Builder instance. |
public static StsTokenExchangeResponse.Builder newBuilder(String accessToken, String issuedTokenType, String tokenType)
StsTokenExchangeResponse.Builder instance.accessToken - The exchanged access token.issuedTokenType - The issued token type. For example, OAuth2Utils.TOKEN_TYPE_ACCESS_TOKEN.tokenType - The token type (e.g., "Bearer").StsTokenExchangeResponse instances.public AccessToken getAccessToken()
public String getIssuedTokenType()
public String getTokenType()
Copyright © 2025 Google. All rights reserved.