[java-shib-profile] branch main updated: OSJ-467 - Add Authentication UsageType

Codeberg noreply at shibboleth.net
Wed Nov 18 16:48:34 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/e5e819d3fb13b05b8f139a7d556f7104b130e8d8

The following commit(s) were added to refs/heads/main by this push:
     new e5e819d  OSJ-467 - Add Authentication UsageType
e5e819d is described below

commit e5e819d3fb13b05b8f139a7d556f7104b130e8d8
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Wed Nov 18 11:48:20 2026 -0500

    OSJ-467 - Add Authentication UsageType
    
    https://shibboleth.atlassian.net/browse/OSJ-467
    
    Guard unexpected usage criterion.
---
 .../profile/relyingparty/RelyingPartyCredentialResolver.java           | 3 +++
 1 file changed, 3 insertions(+)

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 17a572f..3a9d5b3 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
@@ -86,6 +86,9 @@ public class RelyingPartyCredentialResolver extends AbstractCredentialResolver i
                     return resolver.getSigningCredentials();
                 } else if (UsageType.ENCRYPTION.equals(usage.getUsage())) {
                     return resolver.getEncryptionCredentials();
+                } else if (!UsageType.UNSPECIFIED.equals(usage)) {
+                    log.warn("{}: Unsupported usage type supplied as criteria: {}", getId(), usage);
+                    return CollectionSupport.emptyList();
                 }
             }
             

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


More information about the commits mailing list