Class QuotaProjectIdHidingCredentials (2.14.0)

publicclass QuotaProjectIdHidingCredentialsextendsCredentials

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.

Inheritance

java.lang.Object > com.google.auth.Credentials > QuotaProjectIdHidingCredentials

Inherited Members

com.google.auth.Credentials.blockingGetToCallback(java.net.URI,com.google.auth.RequestMetadataCallback)
com.google.auth.Credentials.getAuthenticationType()
com.google.auth.Credentials.getRequestMetadata()
com.google.auth.Credentials.getRequestMetadata(java.net.URI)
com.google.auth.Credentials.getRequestMetadata(java.net.URI,java.util.concurrent.Executor,com.google.auth.RequestMetadataCallback)
com.google.auth.Credentials.hasRequestMetadata()
com.google.auth.Credentials.hasRequestMetadataOnly()
com.google.auth.Credentials.refresh()

Constructors

QuotaProjectIdHidingCredentials(Credentials credentials)

publicQuotaProjectIdHidingCredentials(Credentialscredentials)
Parameter
Name Description
credentials com.google.auth.Credentials

Methods

getAuthenticationType()

publicStringgetAuthenticationType()
Returns
Type Description
Overrides
com.google.auth.Credentials.getAuthenticationType()

getRequestMetadata()

publicMap<String,List<String>>getRequestMetadata()
Returns
Type Description
Overrides
com.google.auth.Credentials.getRequestMetadata()
Exceptions
Type Description

getRequestMetadata(URI uri)

publicMap<String,List<String>>getRequestMetadata(URIuri)
Parameter
Name Description
uri URI
Returns
Type Description
Overrides
com.google.auth.Credentials.getRequestMetadata(java.net.URI)
Exceptions
Type Description

hasRequestMetadata()

publicbooleanhasRequestMetadata()
Returns
Type Description
Overrides
com.google.auth.Credentials.hasRequestMetadata()

hasRequestMetadataOnly()

publicbooleanhasRequestMetadataOnly()
Returns
Type Description
Overrides
com.google.auth.Credentials.hasRequestMetadataOnly()

refresh()

publicvoidrefresh()
Overrides
com.google.auth.Credentials.refresh()
Exceptions
Type Description

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.