Class QuotaProjectIdHidingCredentials

  • All Implemented Interfaces:
    java.io.Serializable

    @Beta
    public class QuotaProjectIdHidingCredentials
    extends com.google.auth.Credentials
    QuotaProjectIdHidingCredentials is intended to be used to wrap a Credentials to hide quota project id

    Ensure that a custom set quota project id takes priority over one detected by credentials.

    See Also:
    Serialized Form
    • Constructor Detail

      • QuotaProjectIdHidingCredentials

        public QuotaProjectIdHidingCredentials​(com.google.auth.Credentials credentials)
    • Method Detail

      • getAuthenticationType

        public java.lang.String getAuthenticationType()
        Specified by:
        getAuthenticationType in class com.google.auth.Credentials
      • getRequestMetadata

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getRequestMetadata​(java.net.URI uri)
                                                                                                  throws java.io.IOException
        Specified by:
        getRequestMetadata in class com.google.auth.Credentials
        Throws:
        java.io.IOException
      • getRequestMetadata

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getRequestMetadata()
                                                                                                  throws java.io.IOException
        Overrides:
        getRequestMetadata in class com.google.auth.Credentials
        Throws:
        java.io.IOException
      • hasRequestMetadata

        public boolean hasRequestMetadata()
        Specified by:
        hasRequestMetadata in class com.google.auth.Credentials
      • hasRequestMetadataOnly

        public boolean hasRequestMetadataOnly()
        Specified by:
        hasRequestMetadataOnly in class com.google.auth.Credentials
      • refresh

        public void refresh()
                     throws java.io.IOException
        Specified by:
        refresh in class com.google.auth.Credentials
        Throws:
        java.io.IOException