| Package | Description |
|---|---|
| com.sap.cloud.sdk.cloudplatform.security | |
| com.sap.cloud.sdk.cloudplatform.security.principal |
| 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> |
DefaultPrincipal.getAuthorizations()
The authorizations this Principal has.
|
Set<Authorization> |
Principal.getAuthorizations()
The authorizations this Principal has.
|
Map<Audience,Set<Authorization>> |
DefaultPrincipal.getAuthorizationsByAudience() |
default Map<Audience,Set<Authorization>> |
Principal.getAuthorizationsByAudience()
The authorizations this Principal has grouped by audience.
|
Set<Authorization> |
DefaultPrincipal.getLocalAuthorizations() |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultPrincipal.setAuthorizationsByAudience(Map<Audience,Set<Authorization>> authorizationsByAudience) |
| Constructor and Description |
|---|
DefaultPrincipal(String principalId,
Set<Authorization> localAuthorizations,
Map<String,PrincipalAttribute> attributes) |
DefaultPrincipal(String principalId,
Set<Authorization> localAuthorizations,
Set<Authorization> allAuthorizations,
Set<Audience> audiences,
Map<String,PrincipalAttribute> attributes)
Creates a new
DefaultPrincipal. |
DefaultPrincipal(String principalId,
Set<Authorization> localAuthorizations,
Set<Authorization> allAuthorizations,
Set<Audience> audiences,
Map<String,PrincipalAttribute> attributes)
Creates a new
DefaultPrincipal. |
Copyright © 2021 SAP SE. All rights reserved.