public class UserTokenFlow extends Object
XsuaaTokenFlows and then create the flow request using a builder
pattern.| Modifier and Type | Method and Description |
|---|---|
UserTokenFlow |
attributes(Map<String,String> additionalAuthorizationAttributes)
Adds additional authorization attributes to the request.
|
UserTokenFlow |
disableCache(boolean disableCache)
Can be used to disable the cache for the flow.
|
OAuth2TokenResponse |
execute()
Executes this flow against the XSUAA endpoint.
|
UserTokenFlow |
scopes(String... scopes)
Sets the scope attribute for the token request.
|
UserTokenFlow |
subdomain(String subdomain)
Sets the subdomain (tenant) the token is requested for.
|
UserTokenFlow |
token(String encodedToken)
Sets the JWT token that should be exchanged for another JWT token.
|
UserTokenFlow |
token(Token token)
Sets the JWT token that should be exchanged for another JWT token.
|
public UserTokenFlow token(String encodedToken)
encodedToken - - the JWT token.public UserTokenFlow token(Token token)
token - - decoded JWT token.public UserTokenFlow attributes(Map<String,String> additionalAuthorizationAttributes)
'az_attr' claim of the returned token.additionalAuthorizationAttributes - - the additional attributes.public UserTokenFlow subdomain(String subdomain)
subdomain - - the subdomain.public UserTokenFlow scopes(@Nonnull String... scopes)
scopes - - one or many scopes as string.public UserTokenFlow disableCache(boolean disableCache)
disableCache - - disables cache when set to true.public OAuth2TokenResponse execute() throws TokenFlowException
IllegalStateException - - in case not all mandatory fields of the token flow request have
been set.TokenFlowException - - in case of an error during the flow, or when the token cannot
be refreshed.Copyright © 2022. All rights reserved.