@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.
| Constructor and Description |
|---|
QuotaProjectIdHidingCredentials(com.google.auth.Credentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationType() |
Map<String,List<String>> |
getRequestMetadata() |
Map<String,List<String>> |
getRequestMetadata(URI uri) |
boolean |
hasRequestMetadata() |
boolean |
hasRequestMetadataOnly() |
void |
refresh() |
public QuotaProjectIdHidingCredentials(com.google.auth.Credentials credentials)
public String getAuthenticationType()
getAuthenticationType in class com.google.auth.Credentialspublic Map<String,List<String>> getRequestMetadata(URI uri) throws IOException
getRequestMetadata in class com.google.auth.CredentialsIOExceptionpublic Map<String,List<String>> getRequestMetadata() throws IOException
getRequestMetadata in class com.google.auth.CredentialsIOExceptionpublic boolean hasRequestMetadata()
hasRequestMetadata in class com.google.auth.Credentialspublic boolean hasRequestMetadataOnly()
hasRequestMetadataOnly in class com.google.auth.Credentialspublic void refresh()
throws IOException
refresh in class com.google.auth.CredentialsIOException