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.CredentialsQuotaProjectIdHidingCredentialsis intended to be used to wrap aCredentialsto hide quota project idEnsure that a custom set quota project id takes priority over one detected by credentials.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QuotaProjectIdHidingCredentials(com.google.auth.Credentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthenticationType()Map<String,List<String>>getRequestMetadata()Map<String,List<String>>getRequestMetadata(URI uri)booleanhasRequestMetadata()booleanhasRequestMetadataOnly()voidrefresh()
-
-
-
Method Detail
-
getAuthenticationType
public String getAuthenticationType()
- Specified by:
getAuthenticationTypein classcom.google.auth.Credentials
-
getRequestMetadata
public Map<String,List<String>> getRequestMetadata(URI uri) throws IOException
- Specified by:
getRequestMetadatain classcom.google.auth.Credentials- Throws:
IOException
-
getRequestMetadata
public Map<String,List<String>> getRequestMetadata() throws IOException
- 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
public void refresh() throws IOException- Specified by:
refreshin classcom.google.auth.Credentials- Throws:
IOException
-
-