Package com.google.auth.oauth2
Class ExternalAccountCredentials.ServiceAccountImpersonationOptions
- java.lang.Object
-
- com.google.auth.oauth2.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 Summary
Fields Modifier and Type Field Description (package private) boolean
customTokenLifetimeRequested
private static int
DEFAULT_TOKEN_LIFETIME_SECONDS
private int
lifetime
private static int
MAXIMUM_TOKEN_LIFETIME_SECONDS
private static int
MINIMUM_TOKEN_LIFETIME_SECONDS
private static long
serialVersionUID
private static java.lang.String
TOKEN_LIFETIME_SECONDS_KEY
-
Constructor Summary
Constructors Constructor Description ServiceAccountImpersonationOptions(java.util.Map<java.lang.String,java.lang.Object> optionsMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getLifetime()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
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
-
-