Class SsoTokenUtils
- Namespace
 - Amazon.Runtime.Credentials.Internal
 
- Assembly
 - AWSSDK.Core.dll
 
public static class SsoTokenUtils
  - Inheritance
 - 
      
      SsoTokenUtils
 
- Inherited Members
 
Methods
AsJson(SsoToken)
Serializes the SSO Token to JSON
public static string AsJson(this SsoToken token)
  Parameters
tokenSsoTokenToken to serialize
Returns
CanRefresh(SsoToken)
Indicates if token has the necessary data properties
to facilitate a refresh attempt.
token is within a refresh
time window.  For that, use NeedsRefresh(SsoToken)/
public static bool CanRefresh(this SsoToken token)
  Parameters
tokenSsoToken
Returns
FromJson(string)
Deserializes the SSO Token from JSON
public static SsoToken FromJson(string json)
  Parameters
jsonstringJSON (string) to deserialize
Returns
IsExpired(SsoToken)
True if ExpiresAt is less than the current time
public static bool IsExpired(this SsoToken token)
  Parameters
tokenSsoToken
Returns
NeedsRefresh(SsoToken)
True if either the token will expire in 6 minutes or
has already expired.
public static bool NeedsRefresh(this SsoToken token)
  Parameters
tokenSsoToken
Returns
ToJson(SsoToken)
Serializes the SSO Token to JSON
public static string ToJson(SsoToken token)
  Parameters
tokenSsoTokenToken to serialize