public class ScpCfUserFacade extends AbstractUserFacade
| Modifier and Type | Field and Description |
|---|---|
static String |
VARIABLE_ALLOW_MOCKED_AUTH_HEADER |
| Constructor and Description |
|---|
ScpCfUserFacade()
Default constructor with default strategies.
|
ScpCfUserFacade(LocalScopePrefixProvider localScopePrefixProvider)
Use this constructor if you want to override the default strategy for determining the local scope prefix.
|
| Modifier and Type | Method and Description |
|---|---|
protected Optional<User> |
getMockedUserAsFallback()
Returns a mocked
User as fallback, if the environment variable "ALLOW_MOCKED_AUTH_HEADER" is set to
"true". |
Optional<User> |
getUserByName(String name) |
Class<ScpCfUser> |
getUserClass() |
protected User |
newMockedUser() |
Optional<User> |
resolveCurrentUser() |
getCurrentUser, getCurrentUserIfAuthenticated, getMockedUser, tryGetCurrentUserpublic static final String VARIABLE_ALLOW_MOCKED_AUTH_HEADER
public ScpCfUserFacade(@Nullable LocalScopePrefixProvider localScopePrefixProvider)
DefaultLocalScopePrefixProvider is used.localScopePrefixProvider - An implementation of the LocalScopePrefixProvider interface. Defaults to
DefaultLocalScopePrefixProvider.public ScpCfUserFacade()
@Nonnull protected User newMockedUser()
newMockedUser in class AbstractUserFacade@Nonnull protected Optional<User> getMockedUserAsFallback()
User as fallback, if the environment variable "ALLOW_MOCKED_AUTH_HEADER" is set to
"true".User.@Nonnull public Optional<User> resolveCurrentUser() throws UserAccessException
UserAccessExceptionCopyright © 2019 SAP SE. All rights reserved.