Class 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 Detail

      • 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
    • Constructor Detail

      • ExternalAccountMetricsHandler

        ExternalAccountMetricsHandler​(ExternalAccountCredentials creds)
        Constructor for the external account metrics handler.
        Parameters:
        creds - the ExternalAccountCredentials object to set the external account metrics options from.
    • Method Detail

      • getExternalAccountMetricsHeader

        java.lang.String getExternalAccountMetricsHeader()
        Gets the external account metrics header value for the x-goog-api-client header.
        Returns:
        the header value.