Class ExternalAccountCredentials.ServiceAccountImpersonationOptions

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ExternalAccountCredentials

    static final class ExternalAccountCredentials.ServiceAccountImpersonationOptions
    extends java.lang.Object
    implements java.io.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 Detail

      • DEFAULT_TOKEN_LIFETIME_SECONDS

        private static final int DEFAULT_TOKEN_LIFETIME_SECONDS
        See Also:
        Constant Field Values
      • MAXIMUM_TOKEN_LIFETIME_SECONDS

        private static final int MAXIMUM_TOKEN_LIFETIME_SECONDS
        See Also:
        Constant Field Values
      • MINIMUM_TOKEN_LIFETIME_SECONDS

        private static final int MINIMUM_TOKEN_LIFETIME_SECONDS
        See Also:
        Constant Field Values
      • TOKEN_LIFETIME_SECONDS_KEY

        private static final java.lang.String TOKEN_LIFETIME_SECONDS_KEY
        See Also:
        Constant Field Values
      • lifetime

        private final int lifetime
      • customTokenLifetimeRequested

        final boolean customTokenLifetimeRequested
    • Constructor Detail

      • ServiceAccountImpersonationOptions

        ServiceAccountImpersonationOptions​(java.util.Map<java.lang.String,​java.lang.Object> optionsMap)
    • Method Detail

      • getLifetime

        int getLifetime()