Modifier and Type | Method and Description |
---|---|
static SerializableCacheKey |
SerializableCacheKey.of(Tenant tenant,
Principal principal)
Constructs a
CacheKey for the given tenant and principal identifier, independent of whether they are
null or not. |
static CacheKey |
CacheKey.of(Tenant tenant,
Principal principal)
Constructs a
CacheKey for the given tenant and principal identifier, independent of whether they are
null or not. |
Modifier and Type | Method and Description |
---|---|
Principal |
ResilienceIsolationKey.getPrincipal() |
Modifier and Type | Class and Description |
---|---|
class |
DefaultPrincipal |
class |
ScpCfPrincipal
An implementation of the
Principal interface for SAP Cloud Platform Cloud Foundry. |
class |
ScpNeoPrincipal
Implementation of
Principal for SAP Cloud Platform Neo. |
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> |
ScpCfPrincipalFacade.tryGetCurrentPrincipal() |
io.vavr.control.Try<Principal> |
ScpNeoPrincipalFacade.tryGetCurrentPrincipal() |
static io.vavr.control.Try<Principal> |
PrincipalAccessor.tryGetCurrentPrincipal()
|
io.vavr.control.Try<Principal> |
PrincipalFacade.tryGetCurrentPrincipal()
Returns a
Try of the current Principal . |
io.vavr.control.Try<Principal> |
DefaultPrincipalFacade.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. |
Modifier and Type | Field and Description |
---|---|
protected Principal |
AccessDeniedException.principal |
Modifier and Type | Method and Description |
---|---|
Principal |
AccessDeniedException.getPrincipal() |
Modifier and Type | Method and Description |
---|---|
static AccessDeniedException |
AccessDeniedException.raiseMissingAuthorizations(Principal principal,
Iterable<? extends Authorization> missingAuthorizations) |
Constructor and Description |
---|
AccessDeniedException(Principal principal,
Set<Authorization> missingAuthorizations) |
Modifier and Type | Method and Description |
---|---|
Principal |
MockUtil.mockCurrentPrincipal() |
Principal |
MockUtil.mockCurrentPrincipal(String principalId) |
Principal |
MockUtil.mockCurrentPrincipal(String principalId,
Collection<Authorization> authorizations,
Map<String,PrincipalAttribute> attributes) |
Principal |
MockUtil.mockPrincipal(String principalId) |
Principal |
MockUtil.mockPrincipal(String principalId,
Collection<Authorization> authorizations,
Map<String,PrincipalAttribute> attributes) |
Copyright © 2019 SAP SE. All rights reserved.