Uses of Class
com.sap.cloud.sdk.cloudplatform.security.AuthToken
-
Uses of AuthToken in com.sap.cloud.sdk.cloudplatform.security
Modifier and TypeMethodDescriptionstatic AuthToken
AuthTokenAccessor.getCurrentToken()
Returns the currentAuthToken
.Modifier and TypeMethodDescriptionAuthTokenAccessor.getFallbackToken()
Global fallbackAuthToken
.static io.vavr.control.Try<AuthToken>
AuthTokenAccessor.tryGetCurrentToken()
io.vavr.control.Try<AuthToken>
AuthTokenFacade.tryGetCurrentToken()
Returns aTry
of the currentAuthToken
.io.vavr.control.Try<AuthToken>
DefaultAuthTokenFacade.tryGetCurrentToken()
io.vavr.control.Try<AuthToken>
DwcAuthTokenFacade.tryGetCurrentToken()
Modifier and TypeMethodDescriptionstatic void
AuthTokenAccessor.executeWithAuthToken
(AuthToken authToken, Executable executable) Execute the givenExecutable
with a given token.static <T> T
AuthTokenAccessor.executeWithAuthToken
(AuthToken authToken, Callable<T> callable) Execute the givenCallable
with a given token.protected <T> T
DefaultAuthTokenFacade.executeWithAuthToken
(AuthToken authToken, Callable<T> callable) Modifier and TypeMethodDescriptionstatic void
AuthTokenAccessor.executeWithFallbackAuthToken
(Supplier<AuthToken> fallbackAuthToken, Executable executable) Execute the givenExecutable
, using the given token as fallback if there is no other token available.static <T> T
AuthTokenAccessor.executeWithFallbackAuthToken
(Supplier<AuthToken> fallbackAuthToken, Callable<T> callable) Execute the givenCallable
, using the given token as fallback if there is no other token available.static void
AuthTokenAccessor.setFallbackToken
(Supplier<AuthToken> fallbackToken) Global fallbackAuthToken
.ModifierConstructorDescriptionAuthTokenThreadContextListener
(AuthToken authToken) Constructor for providing aAuthToken
to be returned by this listener.