complex secret id (#2401)

* complex secret id

* unique secret id
This commit is contained in:
Alexander Skoblikov
2024-02-20 22:03:57 +03:00
committed by GitHub
parent 5d77ec02da
commit 5182ea1238
2 changed files with 2 additions and 2 deletions
@@ -33,6 +33,6 @@ public class WebSecretInfo {
@Property
public String getSecretId() {
return secretValue.getSubjectId();
return secretValue.getUniqueId();
}
}
@@ -338,7 +338,7 @@ public class WebServiceCore implements DBWServiceCore {
}
DBSSecretValue selectedSecret =
allSecrets.stream()
.filter(secret -> selectedSecretId.equals(secret.getSubjectId()))
.filter(secret -> selectedSecretId.equals(secret.getUniqueId()))
.findFirst().orElse(null);
if (selectedSecret == null) {
throw new DBWebException("Secret not found:" + selectedSecretId);