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.SerializableEncapsulates 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) booleancustomTokenLifetimeRequestedprivate static intDEFAULT_TOKEN_LIFETIME_SECONDSprivate intlifetimeprivate static intMAXIMUM_TOKEN_LIFETIME_SECONDSprivate static intMINIMUM_TOKEN_LIFETIME_SECONDSprivate static longserialVersionUIDprivate static java.lang.StringTOKEN_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) intgetLifetime()
-
-
-
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
-
-