Class GcpSecretManagerProperties
java.lang.Object
com.google.cloud.spring.autoconfigure.secretmanager.GcpSecretManagerProperties
- All Implemented Interfaces:
CredentialsSupplier
@ConfigurationProperties("spring.cloud.gcp.secretmanager")
public class GcpSecretManagerProperties
extends Object
implements CredentialsSupplier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSupplies credentials configuration.boolean
void
setAllowDefaultSecret
(boolean allowDefaultSecret) void
setProjectId
(String projectId)
-
Field Details
-
PREFIX
Configuration prefix for Secret Manager properties.- See Also:
-
-
Constructor Details
-
GcpSecretManagerProperties
public GcpSecretManagerProperties()
-
-
Method Details
-
getCredentials
Description copied from interface:CredentialsSupplier
Supplies credentials configuration.- Specified by:
getCredentials
in interfaceCredentialsSupplier
- Returns:
- a POJO containing Google Cloud credentials location and scopes
-
getProjectId
-
setProjectId
-
isAllowDefaultSecret
public boolean isAllowDefaultSecret() -
setAllowDefaultSecret
public void setAllowDefaultSecret(boolean allowDefaultSecret)
-