| Method and Description |
|---|
| com.sap.xsa.security.container.XSUserInfo.checkLocalScope(String)
can be replaced with
xsuaaToken.hasLocalScope(scope) from
the com.sap.cloud.security.token package. |
| com.sap.xsa.security.container.XSUserInfo.checkScope(String)
can be replaced with
xsuaaToken.hasScope(scope) from the
com.sap.cloud.security.token package. |
| com.sap.xsa.security.container.XSUserInfo.getAppToken()
Can be replaced with
token.getAccessToken() from the
com.sap.cloud.security.token package. |
| com.sap.xsa.security.container.XSUserInfo.getClientId()
Can be replaced with
token.getClaimAsString(TokenClaims.XSUAA.CLIENT_ID) from
the com.sap.cloud.security.token package. |
| com.sap.xsa.security.container.XSUserInfo.getDBToken()
use
XSUserInfo.getHdbToken() instead. |
| com.sap.xsa.security.container.XSUserInfo.getEmail()
Can be replaced with
token.getClaimAsString(TokenClaims.EMAIL) from the
com.sap.cloud.security.token package. |
| com.sap.xsa.security.container.XSUserInfo.getFamilyName()
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. |
| com.sap.xsa.security.container.XSUserInfo.getGivenName()
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. |
| com.sap.xsa.security.container.XSUserInfo.getGrantType()
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". |
| com.sap.xsa.security.container.XSUserInfo.getIdentityZone()
Have to be replaced with
XSUserInfo.getZoneId() or
XSUserInfo.getSubaccountId(). |
| com.sap.xsa.security.container.XSUserInfo.getJsonValue(String)
Can be replaced with
token.getClaimAsString(attribute)
from the com.sap.cloud.security.token package. |
| com.sap.xsa.security.container.XSUserInfo.getLogonName()
Can be replaced with
token.getClaimAsString(TokenClaims.USER_NAME) from the
com.sap.cloud.security.token package or with
token.getPrincipal(). |
| com.sap.xsa.security.container.XSUserInfo.getOrigin()
Can be replaced with
token.getClaimAsString(TokenClaims.XSUAA.ORIGIN) from the
com.sap.cloud.security.token package. |
| com.sap.xsa.security.container.XSUserInfo.getToken(String, String)
use
XSUserInfo.getHdbToken() instead. |
| com.sap.xsa.security.container.XSUserInfo.getZoneId()
Can be replaced with
token.getZoneId() from the
com.sap.cloud.security.token package. |
| com.sap.xsa.security.container.XSUserInfo.requestToken(XSTokenRequest)
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.
|
| com.sap.xsa.security.container.XSUserInfo.requestTokenForClient(String, String, String)
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.
|
| com.sap.xsa.security.container.XSUserInfo.requestTokenForUser(String, String, String)
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.