Modifier and Type | Class and Description |
---|---|
class |
AccountSpecificAuthorization
Authorization implementation based on an account Id and another Authorization . |
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.
|
protected Authorization |
AccountSpecificAuthorization.authorization
The wrapped authorization.
|
Modifier and Type | Method and Description |
---|---|
Authorization |
TenantSpecificAuthorization.getAuthorization()
The wrapped authorization.
|
Authorization |
UserSpecificAuthorization.getAuthorization()
The wrapped authorization.
|
Authorization |
AccountSpecificAuthorization.getAuthorization()
The wrapped authorization.
|
Constructor and Description |
---|
AccountSpecificAuthorization(String accountId,
Authorization authorization)
Creates a new authorization based on the tenant identifier and another
Authorization . |
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> |
AbstractUser.getAuthorizations()
A set containing all authorizations the user has.
|
Set<Authorization> |
User.getAuthorizations()
A set containing all authorizations the user has.
|
Set<Authorization> |
ScpNeoUser.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.
|
boolean |
ScpNeoUser.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) |
ScpCfUser(String name,
Locale locale,
Set<Authorization> authorizations,
Map<String,UserAttribute> attributes)
Creates a new
ScpCfUser . |
Constructor and Description |
---|
TenantSpecificUserProvider(Authorization featureToggleAuthorization) |
Modifier and Type | Field and Description |
---|---|
protected Set<Authorization> |
AccessDeniedException.missingAuthorizations |
Modifier and Type | Method and Description |
---|---|
Set<Authorization> |
AccessDeniedException.getMissingAuthorizations() |
Modifier and Type | Method and Description |
---|---|
static AccessDeniedException |
AccessDeniedException.raiseMissingAuthorizations(User user,
Iterable<? extends Authorization> missingAuthorizations) |
Constructor and Description |
---|
AccessDeniedException(User user,
Set<Authorization> missingAuthorizations) |
Modifier and Type | Method and Description |
---|---|
User |
MockUtil.mockCurrentUser(String userName,
Locale locale,
Collection<Authorization> authorizations,
Map<String,UserAttribute> attributes)
Mocks the current
User . |
User |
MockUtil.mockUser(String userName,
Locale locale,
Collection<Authorization> authorizations,
Map<String,UserAttribute> attributes)
Mocks a
User . |
Copyright © 2018 SAP SE. All rights reserved.