| Modifier and Type | Method and Description |
|---|---|
boolean |
XSUserInfo.checkLocalScope(String scope)
Deprecated.
can be replaced with
xsuaaToken.hasLocalScope(scope) from
the com.sap.cloud.security.token package. |
boolean |
XSUserInfo.checkScope(String scope)
Deprecated.
can be replaced with
xsuaaToken.hasScope(scope) from the
com.sap.cloud.security.token package. |
String |
XSUserInfo.getAdditionalAuthAttribute(String attributeName)
Return additional authentication attributes included by the OAuth client
component.
|
String[] |
XSUserInfo.getAttribute(String attributeName)
Return user attributes.
|
String |
XSUserInfo.getClientId()
Deprecated.
Can be replaced with
token.getClaimAsString(TokenClaims.XSUAA.CLIENT_ID) from
the com.sap.cloud.security.token package. |
String |
XSUserInfo.getCloneServiceInstanceId()
In case of xsuaa broker plan tokens, it contains the service instance id
Still Supported via
XSUserInfoAdapter from the
com.sap.cloud.security.adapter.xs package. |
String |
XSUserInfo.getDBToken()
Deprecated.
use
XSUserInfo.getHdbToken() instead. |
String |
XSUserInfo.getEmail()
Deprecated.
Can be replaced with
token.getClaimAsString(TokenClaims.EMAIL) from the
com.sap.cloud.security.token package. |
String |
XSUserInfo.getFamilyName()
Deprecated.
Can be replaced with
token.getClaimAsString(TokenClaims.FAMILY_NAME) from the
com.sap.cloud.security.token package. Only if it is not
an external attribute. |
String |
XSUserInfo.getGivenName()
Deprecated.
Can be replaced with
token.getClaimAsString(TokenClaims.GIVEN_NAME) from the
com.sap.cloud.security.token package. Only if it is not
an external attribute. |
String |
XSUserInfo.getGrantType()
Deprecated.
can be replaced with
token.getGrantType() from the
com.sap.cloud.security.token package. This will give you
a GrantType enum entry on which you can call
toString to obtain the grant type as string, e.g.
"client_credentials". |
String |
XSUserInfo.getHdbToken()
Still Supported via
XSUserInfoAdapter from the
com.sap.cloud.security.adapter.xs package. |
String |
XSUserInfo.getIdentityZone()
Deprecated.
Have to be replaced with
XSUserInfo.getZoneId() or
XSUserInfo.getSubaccountId(). |
String |
XSUserInfo.getJsonValue(String attribute)
Deprecated.
Can be replaced with
token.getClaimAsString(attribute)
from the com.sap.cloud.security.token package. |
String |
XSUserInfo.getLogonName()
Deprecated.
Can be replaced with
token.getClaimAsString(TokenClaims.USER_NAME) from the
com.sap.cloud.security.token package or with
token.getPrincipal(). |
String |
XSUserInfo.getOrigin()
Deprecated.
Can be replaced with
token.getClaimAsString(TokenClaims.XSUAA.ORIGIN) from the
com.sap.cloud.security.token package. |
String |
XSUserInfo.getSubaccountId()
Return subaccount identifier.
|
String |
XSUserInfo.getSubdomain()
Supported via
XSUserInfoAdapter from the
com.sap.cloud.security.adapter.xs package. |
String[] |
XSUserInfo.getSystemAttribute(String attributeName)
Still Supported via
XSUserInfoAdapter from the
com.sap.cloud.security.adapter.xs package. |
String |
XSUserInfo.getToken(String namespace,
String name)
Deprecated.
use
XSUserInfo.getHdbToken() instead. |
String |
XSUserInfo.getZoneId()
Deprecated.
Can be replaced with
token.getZoneId() from the
com.sap.cloud.security.token package. |
boolean |
XSUserInfo.hasAttributes()
Check if the authentication token contains user attributes.
|
boolean |
XSUserInfo.isInForeignMode()
Check if a token issued for another OAuth client has been forwarded to a
different client,
|
String |
XSUserInfo.requestToken(XSTokenRequest tokenRequest)
Deprecated.
can be replaced with token flows from the token-client library.
Does not support mtls-based communication to XSUAA identity
provider and will be removed with version 3.0.0.
|
String |
XSUserInfo.requestTokenForClient(String clientId,
String clientSecret,
String uaaUrl)
Deprecated.
can be replaced with token flows from the token-client library.
Does not support mtls-based communication to XSUAA identity
provider and will be removed with version 3.0.0.
|
String |
XSUserInfo.requestTokenForUser(String clientId,
String clientSecret,
String uaaUrl)
Deprecated.
can be replaced with token flows from the token-client library.
Does not support mtls-based communication to XSUAA identity
provider and will be removed with version 3.0.0.
|
Copyright © 2021. All rights reserved.