Skip to content

Commit 2012ab2

Browse files
committed
notify success
1 parent 063a9b5 commit 2012ab2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/com/uid2/operator/model/KeyManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public KeysetKey getMasterKey(Instant asOf) {
117117
if (keyAvailabilityHandler != null) keyAvailabilityHandler.accept(false);
118118
throw new NoActiveKeyException(String.format("Cannot get a master key with keyset ID %d.", Const.Data.MasterKeysetId));
119119
}
120+
if (keyAvailabilityHandler != null) keyAvailabilityHandler.accept(true);
120121
return key;
121122
}
122123

@@ -130,6 +131,7 @@ public KeysetKey getRefreshKey(Instant asOf) {
130131
if (keyAvailabilityHandler != null) keyAvailabilityHandler.accept(false);
131132
throw new NoActiveKeyException(String.format("Cannot get a refresh key with keyset ID %d.", Const.Data.RefreshKeysetId));
132133
}
134+
if (keyAvailabilityHandler != null) keyAvailabilityHandler.accept(true);
133135
return key;
134136
}
135137

0 commit comments

Comments
 (0)