1 parent deffe7a commit 2e865f8Copy full SHA for 2e865f8
1 file changed
src/windows/WindowsCitizen.java
@@ -0,0 +1,9 @@
1
+package windows;
2
+
3
+/** Non-secret identity and accountability context attached to an operation. */
4
+public record WindowsCitizen(String id, String displayName) {
5
+ public WindowsCitizen {
6
+ if (id == null || id.isBlank()) throw new IllegalArgumentException("id is required");
7
+ if (displayName == null || displayName.isBlank()) throw new IllegalArgumentException("displayName is required");
8
+ }
9
+}
0 commit comments