Uses of Class
com.sap.cloud.sdk.cloudplatform.security.AuthToken
Packages that use AuthToken
-
Uses of AuthToken in com.sap.cloud.sdk.cloudplatform.security
Methods in com.sap.cloud.sdk.cloudplatform.security that return AuthTokenModifier and TypeMethodDescriptionstatic AuthToken
AuthTokenAccessor.getCurrentToken()
Returns the currentAuthToken
.Methods in com.sap.cloud.sdk.cloudplatform.security that return types with arguments of type AuthTokenModifier 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()
Methods in com.sap.cloud.sdk.cloudplatform.security with parameters of type AuthTokenModifier 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) Method parameters in com.sap.cloud.sdk.cloudplatform.security with type arguments of type AuthTokenModifier 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
.Constructors in com.sap.cloud.sdk.cloudplatform.security with parameters of type AuthTokenModifierConstructorDescriptionAuthTokenThreadContextListener
(AuthToken authToken) Constructor for providing aAuthToken
to be returned by this listener.