From c68778ce5f0637fe256da88cfc70e708ba2f757a Mon Sep 17 00:00:00 2001 From: sujan kota Date: Wed, 23 Oct 2024 20:00:37 -0400 Subject: [PATCH] fix(sdk): returns the correct string associated with enums --- .../io/opentdf/platform/sdk/AssertionConfig.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sdk/src/main/java/io/opentdf/platform/sdk/AssertionConfig.java b/sdk/src/main/java/io/opentdf/platform/sdk/AssertionConfig.java index 100f824f..c31fc1b0 100644 --- a/sdk/src/main/java/io/opentdf/platform/sdk/AssertionConfig.java +++ b/sdk/src/main/java/io/opentdf/platform/sdk/AssertionConfig.java @@ -34,6 +34,11 @@ public enum Scope { Scope(String scope) { this.scope = scope; } + + @Override + public String toString() { + return scope; + } } public enum AssertionKeyAlg { @@ -51,6 +56,11 @@ public enum AppliesToState { AppliesToState(String state) { this.state = state; } + + @Override + public String toString() { + return state; + } } public enum BindingMethod { @@ -61,6 +71,11 @@ public enum BindingMethod { BindingMethod(String method) { this.method = method; } + + @Override + public String toString() { + return method; + } } static public class AssertionKey {