@FunctionalInterface public interface CredentialSupplier extends Supplier<String>
AuthenticationStepsmethods. Typically, implementations obtain their credential from a file.
default CredentialSupplier cached()
CredentialSupplierthat obtains the credential early and reuses the token for each
get()call. This is useful to prevent I/O operations in e.g. reactive usage.
Reusing a cached token can lead to authentication failures if the credential expires.
Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.