[java-shib-attribute] branch main updated: JSSH-9 - Rework IdentifierGenerationStrategy usage

Scott Cantor cantor.2 at osu.edu
Thu Oct 13 16:11:20 UTC 2022


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

scantor pushed a commit to branch main
in repository java-shib-attribute.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-attribute.git;a=commit;h=b2082bab45d5d9308943791540ddca8de70b7fc9

The following commit(s) were added to refs/heads/main by this push:
     new b2082bab4 JSSH-9 - Rework IdentifierGenerationStrategy usage
b2082bab4 is described below

commit b2082bab45d5d9308943791540ddca8de70b7fc9
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Oct 13 12:11:17 2022 -0400

    JSSH-9 - Rework IdentifierGenerationStrategy usage
    
    https://shibboleth.atlassian.net/browse/JSSH-9
---
 .../net/shibboleth/idp/attribute/filter/spring/BaseFilterParser.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shib-attribute-filter-spring/src/main/java/net/shibboleth/idp/attribute/filter/spring/BaseFilterParser.java b/shib-attribute-filter-spring/src/main/java/net/shibboleth/idp/attribute/filter/spring/BaseFilterParser.java
index c9fd07421..a2aa57d09 100644
--- a/shib-attribute-filter-spring/src/main/java/net/shibboleth/idp/attribute/filter/spring/BaseFilterParser.java
+++ b/shib-attribute-filter-spring/src/main/java/net/shibboleth/idp/attribute/filter/spring/BaseFilterParser.java
@@ -40,7 +40,7 @@ import net.shibboleth.shared.annotation.constraint.NotEmpty;
 import net.shibboleth.shared.logic.Constraint;
 import net.shibboleth.shared.primitive.StringSupport;
 import net.shibboleth.shared.security.IdentifierGenerationStrategy;
-import net.shibboleth.shared.security.impl.RandomIdentifierGenerationStrategy;
+import net.shibboleth.shared.security.IdentifierGenerationStrategy.ProviderType;
 import net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser;
 import net.shibboleth.shared.spring.util.SpringSupport;
 import net.shibboleth.shared.xml.ElementSupport;
@@ -77,7 +77,7 @@ public abstract class BaseFilterParser extends AbstractCustomBeanDefinitionParse
     public static final String QUALIFIED_ID = "qualifiedId";
 
     /** Generator of unique IDs. */
-    private static IdentifierGenerationStrategy idGen = new RandomIdentifierGenerationStrategy();
+    private static IdentifierGenerationStrategy idGen = IdentifierGenerationStrategy.getInstance(ProviderType.RANDOM);
 
     /** Class logger. */
     private static final Logger LOG = LoggerFactory.getLogger(BaseFilterParser.class);

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


More information about the commits mailing list