Package com.google.auth.oauth2
Class ExternalAccountMetricsHandler
- java.lang.Object
-
- com.google.auth.oauth2.ExternalAccountMetricsHandler
-
- All Implemented Interfaces:
java.io.Serializable
class ExternalAccountMetricsHandler extends java.lang.Object implements java.io.Serializable
A handler for generating the x-goog-api-client header value for BYOID external account credentials.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
BYOID_METRICS_SECTION
private static java.lang.String
CONFIG_LIFETIME_KEY
private boolean
configLifetime
private ExternalAccountCredentials
credentials
private static java.lang.String
IMPERSONATION_KEY
private boolean
saImpersonation
private static java.lang.String
SOURCE_KEY
-
Constructor Summary
Constructors Constructor Description ExternalAccountMetricsHandler(ExternalAccountCredentials creds)
Constructor for the external account metrics handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.String
getExternalAccountMetricsHeader()
Gets the external account metrics header value for the x-goog-api-client header.
-
-
-
Field Detail
-
SOURCE_KEY
private static final java.lang.String SOURCE_KEY
- See Also:
- Constant Field Values
-
IMPERSONATION_KEY
private static final java.lang.String IMPERSONATION_KEY
- See Also:
- Constant Field Values
-
CONFIG_LIFETIME_KEY
private static final java.lang.String CONFIG_LIFETIME_KEY
- See Also:
- Constant Field Values
-
BYOID_METRICS_SECTION
private static final java.lang.String BYOID_METRICS_SECTION
- See Also:
- Constant Field Values
-
configLifetime
private final boolean configLifetime
-
saImpersonation
private final boolean saImpersonation
-
credentials
private ExternalAccountCredentials credentials
-
-
Constructor Detail
-
ExternalAccountMetricsHandler
ExternalAccountMetricsHandler(ExternalAccountCredentials creds)
Constructor for the external account metrics handler.- Parameters:
creds
- theExternalAccountCredentials
object to set the external account metrics options from.
-
-