Package com.google.api.gax.rpc.internal
Class QuotaProjectIdHidingCredentials
java.lang.Object
com.google.auth.Credentials
com.google.api.gax.rpc.internal.QuotaProjectIdHidingCredentials
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.auth.Credentials
blockingGetToCallback, getRequestMetadata
-
Constructor Details
-
QuotaProjectIdHidingCredentials
public QuotaProjectIdHidingCredentials(com.google.auth.Credentials credentials)
-
-
Method Details
-
getAuthenticationType
- Specified by:
getAuthenticationTypein classcom.google.auth.Credentials
-
getRequestMetadata
- Specified by:
getRequestMetadatain classcom.google.auth.Credentials- Throws:
IOException
-
getRequestMetadata
- Overrides:
getRequestMetadatain classcom.google.auth.Credentials- Throws:
IOException
-
hasRequestMetadata
public boolean hasRequestMetadata()- Specified by:
hasRequestMetadatain classcom.google.auth.Credentials
-
hasRequestMetadataOnly
public boolean hasRequestMetadataOnly()- Specified by:
hasRequestMetadataOnlyin classcom.google.auth.Credentials
-
refresh
- Specified by:
refreshin classcom.google.auth.Credentials- Throws:
IOException
-