public class CartOpsSecureVaultEnvironmentPostProcessor extends SecureVaultEnvironmentPostProcessor {
public static final String GOOGLECLOUD_PROJECT_ID =
"broadleaf.cartoperation.securevault.googlecloud.project-id";
@Override
public SecureVaultService getSecureVaultService(ConfigurableEnvironment environment) {
String projectId = environment.getProperty(GOOGLECLOUD_PROJECT_ID);
return new GoogleCloudSecretManagerService(projectId);
}
@Override
public List<String> getTargetProperties() {
return Arrays.asList(
"broadleaf.paypalcheckout.rest.client-secret",
"broadleaf.paypalcheckout.rest.client-id",
"broadleaf.paypalcheckout.rest.mode",
"broadleaf.stripe.rest.public-api-key",
"broadleaf.stripe.rest.private-api-key",
"broadleaf.stripe.rest.payment-intent-return-url");
}
}