public class RefreshTokenFlow extends Object
| Modifier and Type | Method and Description |
|---|---|
RefreshTokenFlow |
disableCache(boolean disableCache)
Can be used to disable the cache for the flow.
|
OAuth2TokenResponse |
execute()
Executes the refresh token flow against XSUAA.
|
RefreshTokenFlow |
refreshToken(String refreshToken)
Sets the mandatory refresh token to be exchanged for a (refreshed) JWT.
|
RefreshTokenFlow |
subdomain(String subdomain)
Sets the subdomain (tenant) the token is requested for.
|
public RefreshTokenFlow subdomain(String subdomain)
subdomain - - the subdomain.public RefreshTokenFlow refreshToken(String refreshToken)
refreshToken - - the refresh token to be exchanged for a JWT.public RefreshTokenFlow disableCache(boolean disableCache)
disableCache - - disables cache when set to true.public OAuth2TokenResponse execute() throws IllegalStateException, IllegalArgumentException, TokenFlowException
IllegalStateException - - in case not all mandatory fields of the token flow request have
been set.IllegalArgumentException - - in case the refresh token flow request is not valid.TokenFlowException - - in case of an error during the flow, or when the token cannot
be refreshed.Copyright © 2022. All rights reserved.