| Package | Description |
|---|---|
| com.sap.cloud.sdk.cloudplatform.security.principal |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultPrincipal
This implementation of
Principal represents the information available for an authenticated entity. |
| Modifier and Type | Method and Description |
|---|---|
static Principal |
PrincipalAccessor.getCurrentPrincipal()
Returns the current
Principal. |
| Modifier and Type | Method and Description |
|---|---|
static Supplier<Principal> |
PrincipalAccessor.getFallbackPrincipal()
Global fallback
Principal. |
io.vavr.control.Try<Principal> |
DefaultPrincipalFacade.tryGetCurrentPrincipal()
Returns a
Try of the current Principal. |
static io.vavr.control.Try<Principal> |
PrincipalAccessor.tryGetCurrentPrincipal()
|
io.vavr.control.Try<Principal> |
PrincipalFacade.tryGetCurrentPrincipal()
Returns a
Try of the current Principal. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
PrincipalAccessor.executeWithPrincipal(Principal principal,
Callable<T> callable)
Execute the given
Callable on behalf of a given principal. |
static void |
PrincipalAccessor.executeWithPrincipal(Principal principal,
Executable executable)
Execute the given
Executable on behalf of a given principal. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
PrincipalAccessor.executeWithFallbackPrincipal(Supplier<Principal> fallbackPrincipal,
Callable<T> callable)
Execute the given
Callable, using the given principal as fallback if there is no other principal
available. |
static void |
PrincipalAccessor.executeWithFallbackPrincipal(Supplier<Principal> fallbackPrincipal,
Executable executable)
Execute the given
Executable, using the given principal as fallback if there is no other principal
available. |
static void |
PrincipalAccessor.setFallbackPrincipal(Supplier<Principal> fallbackPrincipal)
Global fallback
Principal. |
| Constructor and Description |
|---|
PrincipalThreadContextListener(Principal principal)
Constructor for providing a
Principal to be returned by this listener. |
Copyright © 2021 SAP SE. All rights reserved.