[java-shib-profile] branch main updated: Rebase old class on new API.

Codeberg noreply at shibboleth.net
Tue Jul 21 15:45:29 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-shib-profile.

View the commit online:
https://codeberg.org/Shibboleth/java-shib-profile/commit/a7ae100185cbb0ff18140929b71b8642f3878551

The following commit(s) were added to refs/heads/main by this push:
     new a7ae100  Rebase old class on new API.
a7ae100 is described below

commit a7ae100185cbb0ff18140929b71b8642f3878551
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Jul 21 11:44:47 2026 -0400

    Rebase old class on new API.
---
 .../relyingparty/RelyingPartyCredentialResolver.java        | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/shib-profile-api/src/main/java/net/shibboleth/profile/relyingparty/RelyingPartyCredentialResolver.java b/shib-profile-api/src/main/java/net/shibboleth/profile/relyingparty/RelyingPartyCredentialResolver.java
index 952f526..17a572f 100644
--- a/shib-profile-api/src/main/java/net/shibboleth/profile/relyingparty/RelyingPartyCredentialResolver.java
+++ b/shib-profile-api/src/main/java/net/shibboleth/profile/relyingparty/RelyingPartyCredentialResolver.java
@@ -19,8 +19,8 @@ import java.util.ArrayList;
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
+import org.opensaml.security.credential.AbstractCredentialResolver;
 import org.opensaml.security.credential.Credential;
-import org.opensaml.security.credential.CredentialResolver;
 import org.opensaml.security.credential.UsageType;
 import org.opensaml.security.criteria.UsageCriterion;
 import org.slf4j.Logger;
@@ -40,7 +40,7 @@ import net.shibboleth.shared.service.ServiceableComponent;
 /**
  * Credential resolver whose purpose is to resolve configured IdP signing credentials.
  */
-public class RelyingPartyCredentialResolver implements CredentialResolver, IdentifiableComponent {
+public class RelyingPartyCredentialResolver extends AbstractCredentialResolver implements IdentifiableComponent {
     
     /** Logger. */
     @Nonnull private Logger log = LoggerFactory.getLogger(RelyingPartyCredentialResolver.class);
@@ -72,15 +72,6 @@ public class RelyingPartyCredentialResolver implements CredentialResolver, Ident
         id = Constraint.isNotNull(StringSupport.trimOrNull(componentId), "Component ID can not be null or empty");
     }
     
-    /** {@inheritDoc} */
-    @Nullable public Credential resolveSingle(@Nullable final CriteriaSet criteriaSet) throws ResolverException {
-        final Iterable<Credential> creds = resolve(criteriaSet);
-        if (creds.iterator().hasNext()) {
-            return creds.iterator().next();
-        }
-        return null;
-    }
-    
     /** {@inheritDoc} */
     @Nonnull public Iterable<Credential> resolve(@Nullable final CriteriaSet criteria) throws ResolverException {
         

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


More information about the commits mailing list