@InternalApi(value="For internal usage only")
public final class BigtableCredentialsWrapper
extends com.google.auth.Credentials
Credentials
interface and delegates calls to the
underlying @BigtableOAuth2Credentials
object. This is required to decouple the users of
shaded bigtable from the @Credentials
class.Constructor and Description |
---|
BigtableCredentialsWrapper(BigtableOAuth2Credentials btCredentials) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationType() |
Map<String,List<String>> |
getRequestMetadata(URI uri) |
boolean |
hasRequestMetadata() |
boolean |
hasRequestMetadataOnly() |
void |
refresh() |
public BigtableCredentialsWrapper(BigtableOAuth2Credentials btCredentials)
public String getAuthenticationType()
getAuthenticationType
in class com.google.auth.Credentials
public Map<String,List<String>> getRequestMetadata(URI uri) throws IOException
getRequestMetadata
in class com.google.auth.Credentials
IOException
public boolean hasRequestMetadata()
hasRequestMetadata
in class com.google.auth.Credentials
public boolean hasRequestMetadataOnly()
hasRequestMetadataOnly
in class com.google.auth.Credentials
public void refresh() throws IOException
refresh
in class com.google.auth.Credentials
IOException