[java-idp-plugin-vci] 02/04: Revocation log line to INFO -> DEBUG. javadoc improvements
Codeberg
noreply at shibboleth.net
Tue Nov 10 10:10:10 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch dev/REVIEWREVOKE
in repository java-idp-plugin-vci.
View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-vci/commit/112688abc800476ab44b2bd2cb2a3a739c8cdf31
commit 112688abc800476ab44b2bd2cb2a3a739c8cdf31
Author: Janne Lauros <janne.lauros at csc.fi>
AuthorDate: Tue Nov 10 12:00:07 2026 +0200
Revocation log line to INFO -> DEBUG. javadoc improvements
---
.../openidvci/statuslist/storage/StatusListStore.java | 19 +++++--------------
1 file changed, 5 insertions(+), 14 deletions(-)
diff --git a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/statuslist/storage/StatusListStore.java b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/statuslist/storage/StatusListStore.java
index b51caeb..8d53c13 100644
--- a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/statuslist/storage/StatusListStore.java
+++ b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/statuslist/storage/StatusListStore.java
@@ -116,9 +116,6 @@ public class StatusListStore extends AbstractIdentifiableInitializableComponent
throw new ComponentInitializationException("StorageService cannot be null");
}
- // Pieces are of fixed size, so a store wide enough for one is wide enough for
- // every list this
- // issuer will ever publish, whatever gets revoked.
final long required = StatusListCodec.encodeChunk(StatusListCodec.emptyChunk()).length();
final long valueSize = storage.getCapabilities().getValueSize();
if (valueSize < required) {
@@ -181,12 +178,6 @@ public class StatusListStore extends AbstractIdentifiableInitializableComponent
/**
* Revoke a slot of a list.
*
- * Reads the piece of the slot, sets the slot and commits with an optimistic
- * update, one update of a piece at a time within this node. Retries on
- * contention {@value #MAX_RETRIES} times, each after a random wait growing
- * with the attempts. The piece is
- * created if it does not exist. Revoking an already revoked slot does nothing.
- *
* @param bucket bucket of the list
* @param index slot to revoke
* @throws IOException if the stored piece cannot be read, the storage backend
@@ -250,7 +241,7 @@ public class StatusListStore extends AbstractIdentifiableInitializableComponent
}
if (committed) {
- log.info("Revoked slot {} of status list {}", index, bucket.id());
+ log.debug("Revoked slot {} of status list {}", index, bucket.id());
return;
}
@@ -278,12 +269,12 @@ public class StatusListStore extends AbstractIdentifiableInitializableComponent
}
/**
- * Update of a list, returning {@code false} on version mismatch.
+ * Update of a piece, returning {@code false} on version mismatch.
*
* @param version expected version
- * @param key bucket identifier
- * @param value new encoded list
- * @param expiration when the list may be discarded
+ * @param key key of the piece
+ * @param value new encoded piece
+ * @param expiration when the piece may be discarded
* @return {@code true} if the update committed, {@code false} on version
* mismatch or if the record no longer exists
* @throws IOException on any other storage error
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list