public interface AuthTokenFacade
AuthToken
.Modifier and Type | Method and Description |
---|---|
Future<String> |
getRefreshToken(com.auth0.jwt.interfaces.DecodedJWT jwt)
Returns a
Future that resolves to a refresh token. |
io.vavr.control.Try<AuthToken> |
tryGetCurrentToken()
Returns a
Try of the current AuthToken . |
io.vavr.control.Try<AuthToken> |
tryGetXsuaaServiceToken()
Retrieves a validated authentication token from the bound XSUAA instance.
|
@Nonnull io.vavr.control.Try<AuthToken> tryGetCurrentToken()
Try
of the current AuthToken
. An AuthToken
is not available if no request is
available or the request does not contain an "Authorization" header.Try
of the current AuthToken
.@Nonnull io.vavr.control.Try<AuthToken> tryGetXsuaaServiceToken()
Try
of the XSUAA authentication token.@Nonnull Future<String> getRefreshToken(@Nonnull com.auth0.jwt.interfaces.DecodedJWT jwt)
Future
that resolves to a refresh token.jwt
- The decoded JWT instance to resolve a refresh token for.Future
that resolves to a refresh token.TokenRequestFailedException
- When the token request failed.TokenRequestDeniedException
- When the token request was denied.Copyright © 2020 SAP SE. All rights reserved.