Class QuotaProjectIdHidingCredentials (2.47.0)

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
Name Description
credentials com.google.auth.Credentials

Methods

getAuthenticationType()

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

getRequestMetadata()

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

getRequestMetadata(URI uri)

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

hasRequestMetadata()

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

hasRequestMetadataOnly()

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

refresh()

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