public final class StaticTokenProvider extends Object implements SdkTokenProvider
SdkTokenProvider that returns a set implementation of SdkToken.| Modifier and Type | Method and Description |
|---|---|
static StaticTokenProvider |
create(SdkToken token)
Create a token provider that always returns the provided static token.
|
SdkToken |
resolveToken()
Returns an
SdkToken that can be used to authorize a request. |
String |
toString() |
public static StaticTokenProvider create(SdkToken token)
public SdkToken resolveToken()
SdkTokenProviderSdkToken that can be used to authorize a request. Each implementation of SdkTokenProvider
can choose its own strategy for loading token. For example, an implementation might load token from an existing
key management system, or load new token when token is refreshed.resolveToken in interface SdkTokenProviderCopyright © 2023. All rights reserved.