Skip to content

Commit 1dffd35

Browse files
authored
fix(sdk): returns the correct string associated with enums (#200)
1 parent dcfbb56 commit 1dffd35

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

sdk/src/main/java/io/opentdf/platform/sdk/AssertionConfig.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public enum Scope {
3434
Scope(String scope) {
3535
this.scope = scope;
3636
}
37+
38+
@Override
39+
public String toString() {
40+
return scope;
41+
}
3742
}
3843

3944
public enum AssertionKeyAlg {
@@ -51,6 +56,11 @@ public enum AppliesToState {
5156
AppliesToState(String state) {
5257
this.state = state;
5358
}
59+
60+
@Override
61+
public String toString() {
62+
return state;
63+
}
5464
}
5565

5666
public enum BindingMethod {
@@ -61,6 +71,11 @@ public enum BindingMethod {
6171
BindingMethod(String method) {
6272
this.method = method;
6373
}
74+
75+
@Override
76+
public String toString() {
77+
return method;
78+
}
6479
}
6580

6681
static public class AssertionKey {

0 commit comments

Comments
 (0)