@ConfigurationProperties(value="gcp.credentials")
@Context
public class GoogleCredentialsConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.net.URI> |
DEFAULT_SCOPES
The default scopes.
|
static java.lang.String |
PREFIX
The prefix to use.
|
| Constructor and Description |
|---|
GoogleCredentialsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
getEncodedKey()
The Base64 encoded service account key content.
|
java.util.Optional<java.lang.String> |
getLocation()
The location of the service account credential key file.
|
java.util.List<java.net.URI> |
getScopes()
The scopes to use.
|
void |
setEncodedKey(java.lang.String encodedKey)
Sets the Base64 encoded service account key content..
|
void |
setLocation(java.lang.String location)
Sets the location to the service account credential key file.
|
void |
setScopes(java.util.List<java.net.URI> scopes)
The default scopes to associate with the application to access specific APIs.
|
public static final java.util.List<java.net.URI> DEFAULT_SCOPES
public static final java.lang.String PREFIX
@Nonnull public java.util.List<java.net.URI> getScopes()
public void setScopes(@Nullable
java.util.List<java.net.URI> scopes)
scopes - The scopes@Nonnull public java.util.Optional<java.lang.String> getLocation()
public void setLocation(@Nullable
java.lang.String location)
location - The location@Nonnull public java.util.Optional<java.lang.String> getEncodedKey()
locationinstead.
public void setEncodedKey(@Nullable
java.lang.String encodedKey)
encodedKey - The key