Package | Description |
---|---|
com.sap.cloud.sdk.cloudplatform.security |
Modifier and Type | Method and Description |
---|---|
AuthToken |
AuthTokenBuilder.FluentHelperBuild.build()
Builds the
AuthToken . |
AuthToken |
AuthTokenBuilder.FluentHelperRefreshToken.build()
Builds the
AuthToken . |
static AuthToken |
AuthTokenAccessor.getCurrentToken()
Returns the current
AuthToken . |
static AuthToken |
AuthTokenAccessor.getXsuaaServiceToken()
Retrieves a validated authentication token from the bound XSUAA instance.
|
Modifier and Type | Method and Description |
---|---|
static Supplier<AuthToken> |
AuthTokenAccessor.getFallbackToken()
Global fallback
AuthToken . |
static io.vavr.control.Try<AuthToken> |
AuthTokenAccessor.tryGetCurrentToken()
|
io.vavr.control.Try<AuthToken> |
DefaultAuthTokenFacade.tryGetCurrentToken()
Returns a
Try of the current AuthToken . |
io.vavr.control.Try<AuthToken> |
AuthTokenFacade.tryGetCurrentToken()
Returns a
Try of the current AuthToken . |
static io.vavr.control.Try<AuthToken> |
AuthTokenAccessor.tryGetXsuaaServiceToken()
Retrieves a validated authentication token from the bound XSUAA instance.
|
io.vavr.control.Try<AuthToken> |
DefaultAuthTokenFacade.tryGetXsuaaServiceToken()
Retrieves a validated authentication token from the bound XSUAA instance.
|
io.vavr.control.Try<AuthToken> |
AuthTokenFacade.tryGetXsuaaServiceToken()
Retrieves a validated authentication token from the bound XSUAA instance.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
AuthTokenAccessor.executeWithAuthToken(AuthToken authToken,
Callable<T> callable)
Execute the given
Callable with a given token. |
static void |
AuthTokenAccessor.executeWithAuthToken(AuthToken authToken,
Executable executable)
Execute the given
Executable with a given token. |
Modifier and Type | Method and Description |
---|---|
static <T> T |
AuthTokenAccessor.executeWithFallbackAuthToken(Supplier<AuthToken> fallbackAuthToken,
Callable<T> callable)
Execute the given
Callable , using the given token as fallback if there is no other token available. |
static void |
AuthTokenAccessor.executeWithFallbackAuthToken(Supplier<AuthToken> fallbackAuthToken,
Executable executable)
Execute the given
Executable , using the given token as fallback if there is no other token available. |
static void |
AuthTokenAccessor.setFallbackToken(Supplier<AuthToken> fallbackToken)
Global fallback
AuthToken . |
Constructor and Description |
---|
AuthTokenThreadContextListener(AuthToken authToken)
Constructor for providing a
AuthToken to be returned by this listener. |
Copyright © 2021 SAP SE. All rights reserved.