| Package | Description |
|---|---|
| com.sap.cloud.sdk.cloudplatform.security.user | |
| com.sap.cloud.sdk.cloudplatform.security.user.exception |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractUser |
| Modifier and Type | Method and Description |
|---|---|
User |
AbstractUserFacade.getCurrentUser()
Returns the current
User. |
static User |
UserAccessor.getCurrentUser()
Returns the current
User. |
User |
UserFacade.getCurrentUser()
Returns the current
User. |
protected abstract User |
AbstractUserFacade.newMockedUser()
Instantiates a mocked
User. |
| Modifier and Type | Method and Description |
|---|---|
Optional<User> |
AbstractUserFacade.getCurrentUserIfAuthenticated()
Returns the current
User, if authenticated. |
static Optional<User> |
UserAccessor.getCurrentUserIfAuthenticated()
Returns the current
User, if authenticated. |
Optional<User> |
UserFacade.getCurrentUserIfAuthenticated()
Returns the current
User, if authenticated. |
Optional<User> |
AbstractUserFacade.getMockedUser()
Returns a mocked
User, if the environment variable "USE_MOCKED_USER" is set to "true". |
static Optional<User> |
UserAccessor.getUserByName(String name)
Returns a
User by its name, if it exists. |
Optional<User> |
UserFacade.getUserByName(String name)
Returns a
User by its name, if it exists. |
Class<? extends User> |
UserFacade.getUserClass()
Returns the platform-specific implementation class of
User. |
Optional<User> |
UserFacade.resolveCurrentUser()
Resolves the current
User using the platform-specific lookup. |
io.vavr.control.Try<User> |
AbstractUserFacade.tryGetCurrentUser()
Returns a
Try for the current User. |
static io.vavr.control.Try<User> |
UserAccessor.tryGetCurrentUser()
Returns a
Try for the current User. |
io.vavr.control.Try<User> |
UserFacade.tryGetCurrentUser()
Returns a
Try for the current User. |
| Modifier and Type | Method and Description |
|---|---|
User |
UserNotInRoleException.getUser() |
| Constructor and Description |
|---|
UserNotInRoleException(User user,
Role role)
Creates the exception with an error message based on the given user and role.
|
UserNotInRoleException(User user,
Role role,
String message)
Creates the exception by delegating the message to the super constructor and storing the user and the rule.
|
UserNotInRoleException(User user,
Role role,
String message,
Throwable cause)
Creates the exception by delegating the message and the causing exception to the super constructor and storing
the user and the rule.
|
Copyright © 2020 SAP SE. All rights reserved.