public final class TokenUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static SdkToken |
toSdkToken(TokenIdentity tokenIdentity)
Converts an
TokenIdentity to SdkToken. |
static SdkTokenProvider |
toSdkTokenProvider(IdentityProvider<? extends TokenIdentity> identityProvider)
|
public static SdkToken toSdkToken(TokenIdentity tokenIdentity)
TokenIdentity to SdkToken.
Usage of the new TokenIdentity type is preferred over SdkToken. But some places may need to still convert to the older SdkToken type to work with existing code.
The conversion is only aware of TokenIdentity interface. If the input is another sub-type that has other
properties, they are not carried over.
tokenIdentity - The TokenIdentity to convertSdkTokenpublic static SdkTokenProvider toSdkTokenProvider(IdentityProvider<? extends TokenIdentity> identityProvider)
extends TokenIdentity> to SdkTokenProvider based on
toSdkToken(TokenIdentity).
Usage of the new IdentityProvider type is preferred over SdkTokenProvider. But some places may need to still convert to the older SdkTokenProvider type to work with existing code.
identityProvider - The extends TokenIdentity> to convertSdkTokenProviderCopyright © 2026. All rights reserved.