Class ExternalAccountCredentials.ServiceAccountImpersonationOptions

java.lang.Object
com.google.auth.oauth2.ExternalAccountCredentials.ServiceAccountImpersonationOptions
All Implemented Interfaces:
Serializable
Enclosing class:
ExternalAccountCredentials

static final class ExternalAccountCredentials.ServiceAccountImpersonationOptions extends Object implements Serializable
Encapsulates the service account impersonation options portion of the configuration for ExternalAccountCredentials.

If token_lifetime_seconds is not specified, the library will default to a 1-hour lifetime.

 Sample configuration:
 {
   ...
   "service_account_impersonation": {
     "token_lifetime_seconds": 2800
    }
 }
 
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • DEFAULT_TOKEN_LIFETIME_SECONDS

      private static final int DEFAULT_TOKEN_LIFETIME_SECONDS
      See Also:
    • MAXIMUM_TOKEN_LIFETIME_SECONDS

      private static final int MAXIMUM_TOKEN_LIFETIME_SECONDS
      See Also:
    • MINIMUM_TOKEN_LIFETIME_SECONDS

      private static final int MINIMUM_TOKEN_LIFETIME_SECONDS
      See Also:
    • TOKEN_LIFETIME_SECONDS_KEY

      private static final String TOKEN_LIFETIME_SECONDS_KEY
      See Also:
    • lifetime

      private final int lifetime
    • customTokenLifetimeRequested

      final boolean customTokenLifetimeRequested
  • Constructor Details

    • ServiceAccountImpersonationOptions

      ServiceAccountImpersonationOptions(Map<String,Object> optionsMap)
  • Method Details

    • getLifetime

      int getLifetime()