[java-opensaml] branch maint-4 updated: Add additional method override to default expiration.
Scott Cantor
cantor.2 at osu.edu
Fri Aug 5 16:27:43 UTC 2022
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch maint-4
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=1d769b338ddd31d1394da9bfd1c6174d2a4d6072
The following commit(s) were added to refs/heads/maint-4 by this push:
new 1d769b338 Add additional method override to default expiration.
1d769b338 is described below
commit 1d769b338ddd31d1394da9bfd1c6174d2a4d6072
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Aug 5 12:27:40 2022 -0400
Add additional method override to default expiration.
---
.../java/org/opensaml/storage/RevocationCache.java | 43 ++++++++++++++++------
1 file changed, 32 insertions(+), 11 deletions(-)
diff --git a/opensaml-storage-api/src/main/java/org/opensaml/storage/RevocationCache.java b/opensaml-storage-api/src/main/java/org/opensaml/storage/RevocationCache.java
index 0fa615180..59059115c 100644
--- a/opensaml-storage-api/src/main/java/org/opensaml/storage/RevocationCache.java
+++ b/opensaml-storage-api/src/main/java/org/opensaml/storage/RevocationCache.java
@@ -144,26 +144,47 @@ public class RevocationCache extends AbstractIdentifiableInitializableComponent
* Invokes {@link #revoke(String, String, Duration)} with a default expiration parameter.
*
* @param context a context label to subdivide the cache
- * @param s value to revoke
+ * @param key key to revoke
*
- * @return true if value has successfully been listed as revoked in the cache.
+ * @return true if key has successfully been listed as revoked in the cache
*/
- public synchronized boolean revoke(@Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String s) {
- return revoke(context, s, expires);
+ public synchronized boolean revoke(@Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String key) {
+ return revoke(context, key, expires);
}
/**
- * Returns true if the value is successfully revoked. If value has already been revoked, expiration is updated.
+ * Invokes {@link #revoke(String, String, String, Duration)} with a placeholder value parameter.
*
* @param context a context label to subdivide the cache
- * @param s value to revoke
+ * @param key key to revoke
* @param exp entry expiration
*
- * @return true if value has successfully been listed as revoked in the cache
+ * @return true if key has successfully been listed as revoked in the cache
+ *
+ * @since 4.3.0
*/
- public synchronized boolean revoke(@Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String s,
+ public synchronized boolean revoke(@Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String key,
@Nonnull final Duration exp) {
- return revoke(context, s, "y", exp);
+ return revoke(context, key, "y", exp);
+ }
+
+
+ /**
+ * Invokes {@link #revoke(String, String, String, Duration)} with a default expiration parameter.
+ *
+ * <p>If the key has already been revoked, expiration is updated.</p>
+ *
+ * @param context a context label to subdivide the cache
+ * @param key key to revoke
+ * @param value value to insert into revocation record
+ *
+ * @return true if key has successfully been listed as revoked in the cache
+ *
+ * @since 4.3.0
+ */
+ public synchronized boolean revoke(@Nonnull @NotEmpty final String context, @Nonnull @NotEmpty final String key,
+ @Nonnull @NotEmpty final String value) {
+ return revoke(context, key, value, expires);
}
/**
@@ -172,11 +193,11 @@ public class RevocationCache extends AbstractIdentifiableInitializableComponent
* <p>If the key has already been revoked, expiration is updated.</p>
*
* @param context a context label to subdivide the cache
- * @param s value to revoke
+ * @param s key to revoke
* @param value value to insert into revocation record
* @param exp entry expiration
*
- * @return true if value has successfully been listed as revoked in the cache
+ * @return true if key has successfully been listed as revoked in the cache
*
* @since 4.3.0
*/
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list