| Package | Description |
|---|---|
| com.sap.cloud.sdk.cloudplatform.security | |
| com.sap.cloud.sdk.cloudplatform.security.principal | |
| com.sap.cloud.sdk.cloudplatform.security.user |
| Modifier and Type | Class and Description |
|---|---|
class |
Role
A role a user can assume as a form of
Authorization. |
class |
Scope
Represents a scope as a form of
Authorization. |
class |
TenantSpecificAuthorization
Authorization implementation based on a tenant identifier and another Authorization. |
class |
UserSpecificAuthorization
Authorization implementation based on a tenant identifier, a user name, and another Authorization. |
| Modifier and Type | Field and Description |
|---|---|
protected Authorization |
TenantSpecificAuthorization.authorization
The wrapped authorization.
|
protected Authorization |
UserSpecificAuthorization.authorization
The wrapped authorization.
|
| Modifier and Type | Method and Description |
|---|---|
Authorization |
TenantSpecificAuthorization.getAuthorization()
The wrapped authorization.
|
Authorization |
UserSpecificAuthorization.getAuthorization()
The wrapped authorization.
|
| Constructor and Description |
|---|
TenantSpecificAuthorization(String tenantId,
Authorization authorization)
Creates a new authorization based on the tenant identifier and another
Authorization. |
UserSpecificAuthorization(String tenantId,
String userName,
Authorization authorization)
Creates a new authorization based on the tenant identifier, the user name, and another
Authorization. |
| Modifier and Type | Method and Description |
|---|---|
Set<Authorization> |
Principal.getAuthorizations()
The authorizations this Principal has.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
Principal.hasAuthorization(Authorization authorization)
Checks whether this Principal entity has the given Authorization.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Authorization> |
AbstractUser.getAuthorizations()
A set containing all authorizations the user has.
|
Set<Authorization> |
User.getAuthorizations()
A set containing all authorizations the user has.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractUser.hasAuthorization(Authorization authorization)
Checks whether the user has the given authorization.
|
boolean |
User.hasAuthorization(Authorization authorization)
Checks whether the user has the given authorization.
|
| Constructor and Description |
|---|
AbstractUser(String name,
Locale locale,
Set<Authorization> authorizations,
Map<String,UserAttribute> attributes) |
Copyright © 2020 SAP SE. All rights reserved.