public class SimpleTokenCache extends Object
| Constructor and Description |
|---|
SimpleTokenCache(Supplier<Mono<AccessToken>> tokenSupplier)
Creates an instance of RefreshableTokenCredential with default scheme "Bearer".
|
| Modifier and Type | Method and Description |
|---|---|
Mono<AccessToken> |
getToken()
Asynchronously get a token from either the cache or replenish the cache with a new token.
|
public SimpleTokenCache(Supplier<Mono<AccessToken>> tokenSupplier)
tokenSupplier - a method to get a new tokenpublic Mono<AccessToken> getToken()
Copyright © 2020 Microsoft Corporation. All rights reserved.