[java-oidc-common] branch main updated: JCOMOIDC-95 - Add clockSkew and idGenerator configuration hooks to JSONSecurityConfiguration

Henri Mikkonen henri.mikkonen at iki.fi
Mon Jan 15 15:46:42 UTC 2024


This is an automated email from the git hooks/post-receive script.

hjmikkon pushed a commit to branch main
in repository java-oidc-common.

View the commit online:
http://git.shibboleth.net/view/?p=java-oidc-common.git;a=commit;h=173e4b1def2f085f81869d392e7eb6a732222d23

The following commit(s) were added to refs/heads/main by this push:
     new 173e4b1  JCOMOIDC-95 - Add clockSkew and idGenerator configuration hooks to JSONSecurityConfiguration
173e4b1 is described below

commit 173e4b1def2f085f81869d392e7eb6a732222d23
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Mon Jan 15 17:45:51 2024 +0200

    JCOMOIDC-95 - Add clockSkew and idGenerator configuration hooks to JSONSecurityConfiguration
    
    https://shibboleth.atlassian.net/browse/JCOMOIDC-95
---
 .../profile/config/JSONSecurityConfiguration.java  | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/config/JSONSecurityConfiguration.java b/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/config/JSONSecurityConfiguration.java
index d762bee..ec95e21 100644
--- a/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/config/JSONSecurityConfiguration.java
+++ b/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/config/JSONSecurityConfiguration.java
@@ -14,6 +14,9 @@
 
 package net.shibboleth.oidc.profile.config;
 
+import java.time.Duration;
+
+import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
 import org.opensaml.security.config.BasicSecurityConfiguration;
@@ -22,6 +25,7 @@ import net.shibboleth.oidc.security.jose.DecryptionConfiguration;
 import net.shibboleth.oidc.security.jose.EncryptionConfiguration;
 import net.shibboleth.oidc.security.jose.SignatureSigningConfiguration;
 import net.shibboleth.oidc.security.jose.SignatureValidationConfiguration;
+import net.shibboleth.shared.security.IdentifierGenerationStrategy;
 
 /**
  * Class extends SecurityConfiguration to support separate configuration for various encryption and signature
@@ -44,6 +48,24 @@ public class JSONSecurityConfiguration extends BasicSecurityConfiguration {
     /** Configuration used when validating JWS signatures. */
     @Nullable private SignatureValidationConfiguration jwtSignatureValidationConfig;
 
+    /**
+     * Constructor.
+     */
+    public JSONSecurityConfiguration() {
+        super();
+    }
+
+    /**
+     * Constructor.
+     * 
+     * @param skew the clock skew, must be greater than 0
+     * @param generator the identifier generator, must not be null
+     */
+    public JSONSecurityConfiguration(@Nonnull final Duration skew,
+            @Nonnull final IdentifierGenerationStrategy generator) {
+        super(skew, generator);
+    }
+
     /**
      * Set the configuration used to decrypt JWE tokens.
      * 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list