From c90f46b5ddf346dd765ecf1ee74ed47227bb4e20 Mon Sep 17 00:00:00 2001 From: Serge Rider Date: Wed, 31 Jan 2024 16:17:13 +0100 Subject: [PATCH] dbeaver/pro#2403 AWS secret controller stub --- .../cloudbeaver/model/app/VoidSecretController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/VoidSecretController.java b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/VoidSecretController.java index e267f9e098..f3fa170639 100644 --- a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/VoidSecretController.java +++ b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/VoidSecretController.java @@ -21,8 +21,13 @@ import org.jkiss.dbeaver.DBException; import org.jkiss.dbeaver.model.auth.SMCredentialsProvider; import org.jkiss.dbeaver.model.auth.SMSessionContext; +import org.jkiss.dbeaver.model.exec.DBCFeatureNotSupportedException; import org.jkiss.dbeaver.model.secret.DBSSecretController; import org.jkiss.dbeaver.model.secret.DBSSecretControllerAuthorized; +import org.jkiss.dbeaver.model.secret.DBSSecretObject; +import org.jkiss.dbeaver.model.secret.DBSSecretValue; + +import java.util.List; /** * Void secret controller. @@ -46,6 +51,12 @@ public void setPrivateSecretValue(@NotNull String secretId, @Nullable String sec throw new DBException("Secret controller is read-only"); } + @NotNull + @Override + public List discoverCurrentUserSecrets(@NotNull DBSSecretObject secretObject) throws DBException { + throw new DBCFeatureNotSupportedException("Secrets discovery not supported"); + } + @Override public void flushChanges() { }