public class XsuaaToken extends AbstractToken implements AccessToken
tokenBody, tokenHeaderDEFAULT_TOKEN_FACTORY, services| Constructor and Description |
|---|
XsuaaToken(DecodedJwt decodedJwt)
Creates an instance.
|
XsuaaToken(String accessToken)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAppTid() |
String |
getClientId() |
GrantType |
getGrantType() |
Principal |
getPrincipal() |
Set<String> |
getScopes() |
Service |
getService() |
String |
getSubaccountId() |
String |
getSubdomain()
Returns the value of the subdomain (zdn) from the external attribute ext_attr
(ext_attr) claim.
|
String |
getZoneId() |
boolean |
hasLocalScope(String scope)
Check if a local scope is available in the authentication token.
|
boolean |
hasScope(String scope) |
XsuaaToken |
withScopeConverter(ScopeConverter converter)
Configures a scope converter, e.g.
|
createPrincipalByName, equals, getClaimAsJsonObject, getClaimAsString, getClaimAsStringList, getClaims, getExpiration, getHeaderParameterAsString, getHeaders, getNotBefore, getTokenValue, hasClaim, hashCode, hasHeaderParameter, isExpired, isXsuaaToken, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeFromClaimAsStringcreate, getAttributeFromClaimAsStringList, getAudiences, getClaimAsJsonObject, getClaimAsString, getClaimAsStringList, getClaims, getExpiration, getHeaderParameterAsString, getHeaders, getIssuer, getNotBefore, getTokenValue, hasClaim, hasHeaderParameter, isExpiredpublic XsuaaToken(@Nonnull DecodedJwt decodedJwt)
decodedJwt - the decoded jwtpublic XsuaaToken withScopeConverter(@Nullable ScopeConverter converter)
hasLocalScope(String)converter - the scope converter, e.g. XsuaaScopeConverterpublic Set<String> getScopes()
getScopes in interface AccessTokenpublic Principal getPrincipal()
getPrincipal in interface Tokenpublic Service getService()
getService in interface Tokenpublic boolean hasScope(String scope)
hasScope in interface AccessTokenpublic boolean hasLocalScope(@Nonnull String scope)
ScopeConverter to be configured with
withScopeConverter(ScopeConverter).hasLocalScope in interface AccessTokenscope - name of local scope (without the appId)public GrantType getGrantType()
getGrantType in interface Token@Nullable public String getSubdomain()
null.nullpublic String getSubaccountId()
getSubaccountId in interface AccessTokenpublic String getClientId()
getClientId in interface TokenCopyright © 2024. All rights reserved.