Skip to content

Commit 2e865f8

Browse files
committed
Add Windows citizen identity model
1 parent deffe7a commit 2e865f8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/windows/WindowsCitizen.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)