Class QuotaProjectIdHidingCredentials (2.8.1)

public class QuotaProjectIdHidingCredentials extends 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.

Inheritance

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

Constructors

QuotaProjectIdHidingCredentials(Credentials credentials)

public QuotaProjectIdHidingCredentials(Credentials credentials)
Parameter
NameDescription
credentialscom.google.auth.Credentials

Methods

getAuthenticationType()

public String getAuthenticationType()
Returns
TypeDescription
String
Overrides
com.google.auth.Credentials.getAuthenticationType()

getRequestMetadata()

public Map<String,List<String>> getRequestMetadata()
Returns
TypeDescription
Map<String,List<String>>
Overrides
com.google.auth.Credentials.getRequestMetadata()
Exceptions
TypeDescription
IOException

getRequestMetadata(URI uri)

public Map<String,List<String>> getRequestMetadata(URI uri)
Parameter
NameDescription
uriURI
Returns
TypeDescription
Map<String,List<String>>
Overrides
com.google.auth.Credentials.getRequestMetadata(java.net.URI)
Exceptions
TypeDescription
IOException

hasRequestMetadata()

public boolean hasRequestMetadata()
Returns
TypeDescription
boolean
Overrides
com.google.auth.Credentials.hasRequestMetadata()

hasRequestMetadataOnly()

public boolean hasRequestMetadataOnly()
Returns
TypeDescription
boolean
Overrides
com.google.auth.Credentials.hasRequestMetadataOnly()

refresh()

public void refresh()
Overrides
com.google.auth.Credentials.refresh()
Exceptions
TypeDescription
IOException