Class ConnectorCredentialsProvider (1.2.0)

public class ConnectorCredentialsProvider implements CredentialsProvider

Inheritance

java.lang.Object > ConnectorCredentialsProvider

Implements

CredentialsProvider

Static Methods

fromConfig(Map<String,Object> config)

public static ConnectorCredentialsProvider fromConfig(Map<String,Object> config)
Parameter
NameDescription
configMap<String,Object>
Returns
TypeDescription
ConnectorCredentialsProvider

fromDefault()

public static ConnectorCredentialsProvider fromDefault()
Returns
TypeDescription
ConnectorCredentialsProvider

fromFile(String credentialPath)

public static ConnectorCredentialsProvider fromFile(String credentialPath)
Parameter
NameDescription
credentialPathString
Returns
TypeDescription
ConnectorCredentialsProvider

fromJson(String credentialsJson)

public static ConnectorCredentialsProvider fromJson(String credentialsJson)
Parameter
NameDescription
credentialsJsonString
Returns
TypeDescription
ConnectorCredentialsProvider

Methods

getCredentials()

public Credentials getCredentials()
Returns
TypeDescription
com.google.auth.Credentials
Exceptions
TypeDescription
IOException