[java-oidc-common] branch main updated: OSJ-467 - Add Authentication UsageType
Codeberg
noreply at shibboleth.net
Wed Nov 18 18:38:01 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-oidc-common.
View the commit online:
https://codeberg.org/Shibboleth/java-oidc-common/commit/d180e3be3ce4e1ebba91d4127a006dfa64942a18
The following commit(s) were added to refs/heads/main by this push:
new d180e3be OSJ-467 - Add Authentication UsageType
d180e3be is described below
commit d180e3be3ce4e1ebba91d4127a006dfa64942a18
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Wed Nov 18 18:37:46 2026 +0000
OSJ-467 - Add Authentication UsageType
- Improve Javadoc on public helper method to clarify what a null return
type means.
https://shibboleth.atlassian.net/browse/OSJ-467
---
.../java/net/shibboleth/oidc/security/CredentialConversionUtil.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/oidc-common-crypto-api/src/main/java/net/shibboleth/oidc/security/CredentialConversionUtil.java b/oidc-common-crypto-api/src/main/java/net/shibboleth/oidc/security/CredentialConversionUtil.java
index 77474999..662ae1c3 100644
--- a/oidc-common-crypto-api/src/main/java/net/shibboleth/oidc/security/CredentialConversionUtil.java
+++ b/oidc-common-crypto-api/src/main/java/net/shibboleth/oidc/security/CredentialConversionUtil.java
@@ -71,6 +71,12 @@ public final class CredentialConversionUtil {
/**
* Resolves KeyUse parameter from credential.
*
+ * <p>Only {@link UsageType#SIGNING} and {@link UsageType#ENCRYPTION} have corresponding Nimbus
+ * {@link KeyUse} values.</p>
+ *
+ * <p>A return value of {@code null} indicates that the credential either
+ * has no usage type, or has a usage type other than {@link UsageType#SIGNING} or {@link UsageType#ENCRYPTION}.</p>
+ *
* @param credential credential to resolve KeyUse of
* @return KeyUse of credential
*/
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list