Class TokenUtils
java.lang.Object
software.amazon.awssdk.auth.token.credentials.internal.TokenUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic SdkToken
toSdkToken
(TokenIdentity tokenIdentity) Converts anTokenIdentity
toSdkToken
.
-
Method Details
-
toSdkToken
Converts anTokenIdentity
toSdkToken
.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.- Parameters:
tokenIdentity
- TheTokenIdentity
to convert- Returns:
- The corresponding
SdkToken
-