Package com.google.auth.oauth2
Class ExternalAccountMetricsHandler
java.lang.Object
com.google.auth.oauth2.ExternalAccountMetricsHandler
- All Implemented Interfaces:
Serializable
A handler for generating the x-goog-api-client header value for BYOID external account
credentials.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private final boolean
private ExternalAccountCredentials
private static final String
private final boolean
private static final String
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the external account metrics handler. -
Method Summary
Modifier and TypeMethodDescription(package private) String
Gets the external account metrics header value for the x-goog-api-client header.
-
Field Details
-
SOURCE_KEY
- See Also:
-
IMPERSONATION_KEY
- See Also:
-
CONFIG_LIFETIME_KEY
- See Also:
-
BYOID_METRICS_SECTION
- See Also:
-
configLifetime
private final boolean configLifetime -
saImpersonation
private final boolean saImpersonation -
credentials
-
-
Constructor Details
-
ExternalAccountMetricsHandler
ExternalAccountMetricsHandler(ExternalAccountCredentials creds) Constructor for the external account metrics handler.- Parameters:
creds
- theExternalAccountCredentials
object to set the external account metrics options from.
-
-
Method Details
-
getExternalAccountMetricsHeader
String getExternalAccountMetricsHeader()Gets the external account metrics header value for the x-goog-api-client header.- Returns:
- the header value.
-