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) throws TokenRequestFailedException, TokenRequestDeniedException
Future
that resolves to a refresh token.Future
that resolves to a refresh token.TokenRequestFailedException
TokenRequestDeniedException
Copyright © 2019 SAP SE. All rights reserved.