Class TokenUtils
- java.lang.Object
-
- software.amazon.awssdk.auth.token.credentials.internal.TokenUtils
-
public class TokenUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SdkTokentoSdkToken(TokenIdentity tokenIdentity)Converts anTokenIdentitytoSdkToken.
-
-
-
Method Detail
-
toSdkToken
public static SdkToken toSdkToken(TokenIdentity tokenIdentity)
Converts anTokenIdentitytoSdkToken.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
TokenIdentityinterface. If the input is another sub-type that has other properties, they are not carried over.- Parameters:
tokenIdentity- TheTokenIdentityto convert- Returns:
- The corresponding
SdkToken
-
-