[java-oidc-common] branch main updated: Logging improvement for credential algorithms

Phil Smart philip.smart at jisc.ac.uk
Tue May 2 10:33:12 UTC 2023


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

philsmart 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=15a4ad63ff664de9e67d6c29621a928f8845c8d3

The following commit(s) were added to refs/heads/main by this push:
     new 15a4ad6  Logging improvement for credential algorithms
15a4ad6 is described below

commit 15a4ad63ff664de9e67d6c29621a928f8845c8d3
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Tue May 2 11:33:10 2023 +0100

    Logging improvement for credential algorithms
---
 .../security/credential/impl/BasicJOSEObjectCredentialResolver.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/credential/impl/BasicJOSEObjectCredentialResolver.java b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/credential/impl/BasicJOSEObjectCredentialResolver.java
index fb1f959..ff495f5 100644
--- a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/credential/impl/BasicJOSEObjectCredentialResolver.java
+++ b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/credential/impl/BasicJOSEObjectCredentialResolver.java
@@ -231,8 +231,9 @@ public class BasicJOSEObjectCredentialResolver extends AbstractCriteriaFiltering
                 try {
                     final Credential cred = CredentialConversionUtil.keyToCredential(key);
                     if (cred != null) {
-                        log.trace("Found key '{}' of type '{}' with usage '{}' and alg '{}'",
-                                key.getKeyID(), key.getKeyType(), key.getKeyUse(), key.getAlgorithm());
+                        log.trace("Found key '{}' of type '{}' with usage '{}' {}",
+                                key.getKeyID(), key.getKeyType(), key.getKeyUse(), 
+                                key.getAlgorithm() != null ? ", and alg: "+ key.getAlgorithm() : "");
                         credentials.add(cred);
                     }
                 } catch (final JOSEException e) {

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


More information about the commits mailing list