public class EntriesCredentialConfiguration extends CredentialConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
EntriesCredentialConfiguration.Builder<B extends EntriesCredentialConfiguration.Builder<B,T>,T extends EntriesCredentialConfiguration>
Builder for constructing CredentialConfiguration instances.
|
static interface |
EntriesCredentialConfiguration.Entries
The interface to interact with the configuration object.
|
static class |
EntriesCredentialConfiguration.EntriesBuilder
A builder for use without a subclasses of EntriesCredentialConfiguration.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_KEY_PREFIX
All instances constructed using the builder will use "google.cloud" as the first
prefix checked.
|
static java.lang.String |
CLIENT_ID_SUFFIX
For OAuth-based Installed App authentication, the key suffix specifying the client ID for
the credentials.
|
static java.lang.String |
CLIENT_SECRET_SUFFIX
For OAuth-based Installed App authentication, the key suffix specifying the client secret
for the credentials.
|
static java.lang.String |
ENABLE_NULL_CREDENTIAL_SUFFIX
For unit-testing, the key suffix allowing null to be returned from credential creation
instead of logging an error and aborting.
|
static java.lang.String |
ENABLE_SERVICE_ACCOUNTS_SUFFIX
Key suffix used to disable service accounts.
|
static HttpTransportFactory.HttpTransportType |
HTTP_TRANSPORT_DEFAULT
Default to the default specified in HttpTransportFactory.
|
static java.lang.String |
HTTP_TRANSPORT_KEY
Configuration key for the name of HttpTransport class to use for connecting to GCS.
|
static java.lang.String |
JSON_KEYFILE_SUFFIX
Key suffix used to indicate the path to a JSON file containing a Service Account key and
identifier (email).
|
static java.lang.String |
OAUTH_CLIENT_FILE_SUFFIX
For OAuth-based Installed App authentication, the key suffix specifying the file containing
credentials (JWT).
|
static java.lang.String |
PROXY_ADDRESS_DEFAULT
Default to no proxy.
|
static java.lang.String |
PROXY_ADDRESS_KEY
Configuration key for setting a proxy for the connector to use to connect to GCS.
|
static java.lang.String |
SERVICE_ACCOUNT_EMAIL_SUFFIX
Key suffix used to control which email address is associated with the service account.
|
static java.lang.String |
SERVICE_ACCOUNT_KEYFILE_SUFFIX
Key suffix used to indicate the path to the service account p12 keyfile.
|
static java.lang.String |
SERVICE_ACCOUNT_PRIVATE_KEY_ID_SUFFIX
Key suffix used to specify private key id for the service account.
|
static java.lang.String |
SERVICE_ACCOUNT_PRIVATE_KEY_SUFFIX
Key suffix used to specify private key for the service account.
|
Constructor and Description |
---|
EntriesCredentialConfiguration(java.util.List<java.lang.String> prefixes) |
Modifier and Type | Method and Description |
---|---|
void |
getConfigurationInto(EntriesCredentialConfiguration.Entries configuration)
Gets our parameters and fills it into the specified configuration.
|
static EntriesCredentialConfiguration.EntriesBuilder |
newEntriesBuilder()
Create a builder for this class.
|
void |
setConfiguration(EntriesCredentialConfiguration.Entries entries)
Load configuration values from the provided configuration source.
|
getClientId, getClientSecret, getCredential, getOAuthCredentialFile, getProxyAddress, getServiceAccountEmail, getServiceAccountJsonKeyFile, getServiceAccountKeyFile, getServiceAccountPrivateKey, getServiceAccountPrivateKeyId, getTransportType, isNullCredentialEnabled, isServiceAccountEnabled, setClientId, setClientSecret, setEnableServiceAccounts, setNullCredentialEnabled, setOAuthCredentialFile, setProxyAddress, setServiceAccountEmail, setServiceAccountJsonKeyFile, setServiceAccountKeyFile, setServiceAccountPrivateKey, setServiceAccountPrivateKeyId, setTransportType, shouldUseMetadataService, toString
public static final java.lang.String BASE_KEY_PREFIX
public static final java.lang.String ENABLE_SERVICE_ACCOUNTS_SUFFIX
public static final java.lang.String SERVICE_ACCOUNT_EMAIL_SUFFIX
public static final java.lang.String SERVICE_ACCOUNT_PRIVATE_KEY_ID_SUFFIX
public static final java.lang.String SERVICE_ACCOUNT_PRIVATE_KEY_SUFFIX
public static final java.lang.String SERVICE_ACCOUNT_KEYFILE_SUFFIX
public static final java.lang.String JSON_KEYFILE_SUFFIX
public static final java.lang.String CLIENT_ID_SUFFIX
public static final java.lang.String CLIENT_SECRET_SUFFIX
public static final java.lang.String OAUTH_CLIENT_FILE_SUFFIX
public static final java.lang.String ENABLE_NULL_CREDENTIAL_SUFFIX
public static final java.lang.String PROXY_ADDRESS_KEY
public static final java.lang.String PROXY_ADDRESS_DEFAULT
public static final java.lang.String HTTP_TRANSPORT_KEY
public static final HttpTransportFactory.HttpTransportType HTTP_TRANSPORT_DEFAULT
public EntriesCredentialConfiguration(java.util.List<java.lang.String> prefixes)
public static EntriesCredentialConfiguration.EntriesBuilder newEntriesBuilder()
public void getConfigurationInto(EntriesCredentialConfiguration.Entries configuration)
public void setConfiguration(EntriesCredentialConfiguration.Entries entries)
Copyright © 2018. All rights reserved.