public class DefaultAuthTokenFacade extends Object implements AuthTokenFacade
AuthToken
.Constructor and Description |
---|
DefaultAuthTokenFacade() |
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 public 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.tryGetCurrentToken
in interface AuthTokenFacade
Try
of the current AuthToken
.@Nonnull public io.vavr.control.Try<AuthToken> tryGetXsuaaServiceToken()
tryGetXsuaaServiceToken
in interface AuthTokenFacade
Try
of the XSUAA authentication token.@Nonnull public Future<String> getRefreshToken(@Nonnull com.auth0.jwt.interfaces.DecodedJWT jwt)
Future
that resolves to a refresh token.getRefreshToken
in interface AuthTokenFacade
Future
that resolves to a refresh token.Copyright © 2019 SAP SE. All rights reserved.