[java-identity-provider] 03/03: JSSH-5 ServiceableComponent should implement AutoClose

Rod Widdowson rdw at steadingsoftware.com
Sat Nov 26 14:46:30 UTC 2022


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

rdw pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=34d1410b379de178f569a0590f6310101da581a1

commit 34d1410b379de178f569a0590f6310101da581a1
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Nov 26 13:34:59 2022 +0000

    JSSH-5 ServiceableComponent should implement AutoClose
    
    https://shibboleth.atlassian.net/browse/JSSH-5
    
    PatternServiceRegistry no longer extends
    NameIdentifierGenerationServiceImpl
---
 .../saml/nameid/impl/NameIdentifierGenerationServiceImpl.java | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/nameid/impl/NameIdentifierGenerationServiceImpl.java b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/nameid/impl/NameIdentifierGenerationServiceImpl.java
index 5b714ccd9..292c9c738 100644
--- a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/nameid/impl/NameIdentifierGenerationServiceImpl.java
+++ b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/nameid/impl/NameIdentifierGenerationServiceImpl.java
@@ -24,12 +24,12 @@ import org.opensaml.saml.saml2.profile.SAML2NameIDGenerator;
 
 import net.shibboleth.idp.saml.nameid.NameIdentifierGenerationService;
 import net.shibboleth.shared.annotation.constraint.NonnullAfterInit;
+import net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent;
 import net.shibboleth.shared.component.ComponentInitializationException;
 import net.shibboleth.shared.logic.Constraint;
-import net.shibboleth.shared.spring.service.AbstractServiceableComponent;
 
 /** Implementation of {@link NameIdentifierGenerationService}. */
-public class NameIdentifierGenerationServiceImpl extends AbstractServiceableComponent<NameIdentifierGenerationService>
+public class NameIdentifierGenerationServiceImpl extends AbstractIdentifiableInitializableComponent
         implements NameIdentifierGenerationService {
 
     /** SAML 1 generator. */
@@ -77,11 +77,4 @@ public class NameIdentifierGenerationServiceImpl extends AbstractServiceableComp
     public SAML2NameIDGenerator getSAML2NameIDGenerator() {
         return saml2Generator;
     }
-
-    /** {@inheritDoc} */
-    @Override
-    public NameIdentifierGenerationService getComponent() {
-        return this;
-    }
-
 }
\ No newline at end of file

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


More information about the commits mailing list