public interface AccessToken extends Token
| Modifier and Type | Method and Description |
|---|---|
GrantType |
getGrantType()
Returns the grant type of the jwt token.
|
Set<String> |
getScopes()
Returns the list of the claim "scope".
|
default String |
getSubaccountId()
Returns subaccount identifier.
|
boolean |
hasLocalScope(String scope)
Check if a local scope is available in the authentication token.
|
boolean |
hasScope(String scope)
Checks if a scope is available in the access token.
|
create, getAttributeFromClaimAsString, getAttributeFromClaimAsStringList, getAudiences, getClaimAsJsonObject, getClaimAsString, getClaimAsStringList, getClaims, getClientId, getExpiration, getHeaderParameterAsString, getHeaders, getNotBefore, getPrincipal, getService, getTokenValue, getZoneId, hasClaim, hasHeaderParameter, isExpiredSet<String> getScopes()
boolean hasScope(String scope)
scope - name of the scopeboolean hasLocalScope(@Nonnull String scope)
scope - name of local scope@Nullable GrantType getGrantType()
@Nullable default String getSubaccountId()
ext_attr.subaccountid in xsuaa access tokens. For example,
commercialized multi-tenant applications with a need for metering and billing
use getSubaccountId() method as identifier for the account to be
billed.Token.getZoneId() method instead.nullCopyright © 2021. All rights reserved.