Class ScpCfPrincipalFacade
java.lang.Object
com.sap.cloud.sdk.cloudplatform.security.principal.DefaultPrincipalFacade
com.sap.cloud.sdk.cloudplatform.security.principal.ScpCfPrincipalFacade
- All Implemented Interfaces:
PrincipalFacade
Deprecated.
Facade providing access to
Principal information on SAP Business Technology Platform Cloud Foundry.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor with default strategies.ScpCfPrincipalFacade(LocalScopePrefixProvider localScopePrefixProvider) Deprecated.Creates a new instance of this facade with the given prefix provider. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetIdExtractorFunction(String grantType, io.vavr.CheckedFunction1<com.auth0.jwt.interfaces.DecodedJWT, String> principalIdExtractor) Deprecated.This allows to set/override the way thePrincipal.getPrincipalId()is obtained, given agrant_typein theAuthToken.io.vavr.control.Try<Principal>Deprecated.
-
Constructor Details
-
ScpCfPrincipalFacade
Deprecated.Creates a new instance of this facade with the given prefix provider.- Parameters:
localScopePrefixProvider- The prefix provider to be used to remove prefixes from authorizations.
-
ScpCfPrincipalFacade
public ScpCfPrincipalFacade()Deprecated.Default constructor with default strategies.
-
-
Method Details
-
setIdExtractorFunction
public void setIdExtractorFunction(@Nonnull String grantType, @Nonnull io.vavr.CheckedFunction1<com.auth0.jwt.interfaces.DecodedJWT, String> principalIdExtractor) Deprecated.This allows to set/override the way thePrincipal.getPrincipalId()is obtained, given agrant_typein theAuthToken.- Parameters:
grantType- The grant type to use the extractor for.principalIdExtractor- The logic to obtain an id for thePrincipalfrom theAuthToken.
-
tryGetCurrentPrincipal
Deprecated.- Specified by:
tryGetCurrentPrincipalin interfacePrincipalFacade- Overrides:
tryGetCurrentPrincipalin classDefaultPrincipalFacade
-
DefaultPrincipalFacadeinstead.