-
Methods Method Description com.sap.xsa.security.container.XSUserInfo.checkLocalScope(String) can be replaced withxsuaaToken.hasLocalScope(scope)from thecom.sap.cloud.security.tokenpackage.com.sap.xsa.security.container.XSUserInfo.checkScope(String) can be replaced withxsuaaToken.hasScope(scope)from thecom.sap.cloud.security.tokenpackage.com.sap.xsa.security.container.XSUserInfo.getAppToken() Can be replaced withtoken.getAccessToken()from thecom.sap.cloud.security.tokenpackage.com.sap.xsa.security.container.XSUserInfo.getClientId() Can be replaced withtoken.getClaimAsString(TokenClaims.XSUAA.CLIENT_ID)from thecom.sap.cloud.security.tokenpackage.com.sap.xsa.security.container.XSUserInfo.getDBToken() usegetHdbToken()instead.com.sap.xsa.security.container.XSUserInfo.getEmail() Can be replaced withtoken.getClaimAsString(TokenClaims.EMAIL)from thecom.sap.cloud.security.tokenpackage.com.sap.xsa.security.container.XSUserInfo.getFamilyName() Can be replaced withtoken.getClaimAsString(TokenClaims.FAMILY_NAME)from thecom.sap.cloud.security.tokenpackage. Only if it is not an external attribute.com.sap.xsa.security.container.XSUserInfo.getGivenName() Can be replaced withtoken.getClaimAsString(TokenClaims.GIVEN_NAME)from thecom.sap.cloud.security.tokenpackage. Only if it is not an external attribute.com.sap.xsa.security.container.XSUserInfo.getGrantType() can be replaced withtoken.getGrantType()from thecom.sap.cloud.security.tokenpackage. This will give you aGrantTypeenum entry on which you can calltoStringto obtain the grant type as string, e.g. "client_credentials".com.sap.xsa.security.container.XSUserInfo.getIdentityZone() Have to be replaced withgetZoneId()orgetSubaccountId().com.sap.xsa.security.container.XSUserInfo.getJsonValue(String) Can be replaced withtoken.getClaimAsString(attribute)from thecom.sap.cloud.security.tokenpackage.com.sap.xsa.security.container.XSUserInfo.getLogonName() Can be replaced withtoken.getClaimAsString(TokenClaims.USER_NAME)from thecom.sap.cloud.security.tokenpackage or withtoken.getPrincipal().com.sap.xsa.security.container.XSUserInfo.getOrigin() Can be replaced withtoken.getClaimAsString(TokenClaims.XSUAA.ORIGIN)from thecom.sap.cloud.security.tokenpackage.com.sap.xsa.security.container.XSUserInfo.getToken(String, String) usegetHdbToken()instead.com.sap.xsa.security.container.XSUserInfo.getZoneId() Can be replaced withtoken.getZoneId()from thecom.sap.cloud.security.tokenpackage.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.