This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new 0dffedc82 Add SystemProperties.JAVA_SECURITY_KERBEROS_CONF 0dffedc82 is described below commit 0dffedc822cefbec5151653170ee23faa18d7fac Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Apr 7 13:38:38 2025 -0400 Add SystemProperties.JAVA_SECURITY_KERBEROS_CONF - Add SystemProperties.JAVA_SECURITY_KERBEROS_KDC - Add SystemProperties.JAVA_SECURITY_KERBEROS_REAL --- src/changes/changes.xml | 3 ++ .../org/apache/commons/lang3/SystemProperties.java | 33 ++++++++++++++++++++++ .../apache/commons/lang3/SystemPropertiesTest.java | 3 ++ 3 files changed, 39 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 12faf306f..392654f52 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -112,6 +112,9 @@ The <action> type attribute can be add,update,fix,remove. <action type="add" dev="ggregory" due-to="Gary Gregory">Add SystemUtils.getUserHomePath().</action> <action type="add" dev="ggregory" due-to="Gary Gregory">Add ArrayFill.fill(T[], FailableIntFunction)).</action> <action type="add" dev="ggregory" due-to="Gary Gregory">Add SystemProperties.JAVA_SECURITY_DEBUG.</action> + <action type="add" dev="ggregory" due-to="Gary Gregory">Add SystemProperties.JAVA_SECURITY_KERBEROS_CONF.</action> + <action type="add" dev="ggregory" due-to="Gary Gregory">Add SystemProperties.JAVA_SECURITY_KERBEROS_KDC.</action> + <action type="add" dev="ggregory" due-to="Gary Gregory">Add SystemProperties.JAVA_SECURITY_KERBEROS_REAL.</action> <!-- UPDATE --> <action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump org.apache.commons:commons-parent from 73 to 81 #1267, #1277, #1283, #1288, #1302.</action> <action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">[site] Bump org.codehaus.mojo:taglist-maven-plugin from 3.1.0 to 3.2.1 #1300.</action> diff --git a/src/main/java/org/apache/commons/lang3/SystemProperties.java b/src/main/java/org/apache/commons/lang3/SystemProperties.java index b86f6962e..24b98f8c7 100644 --- a/src/main/java/org/apache/commons/lang3/SystemProperties.java +++ b/src/main/java/org/apache/commons/lang3/SystemProperties.java @@ -505,6 +505,39 @@ public final class SystemProperties { */ public static final String JAVA_SECURITY_AUTH_LOGIN_CONFIG = "java.security.auth.login.config"; + /** + * The System property name {@value}. + * + * @see <a href= "https://docs.oracle.com/en/java/javase/24/docs/api/system-properties.html">java.security.krb5.conf</a> + * @see <a href= + * "https://docs.oracle.com/en/java/javase/24/docs/api/java.security.jgss/javax/security/auth/kerberos/package-summary.html#java.security.krb5.conf">package + * javax.security.auth.kerberos conf</a> + * @since 3.18.0 + */ + public static final String JAVA_SECURITY_KERBEROS_CONF = "java.security.krb5.conf"; + + /** + * The System property name {@value}. + * + * @see <a href= "https://docs.oracle.com/en/java/javase/24/docs/api/system-properties.html">java.security.krb5.kdc</a> + * @see <a href= + * "https://docs.oracle.com/en/java/javase/24/docs/api/java.security.jgss/javax/security/auth/kerberos/package-summary.html#java.security.krb5.kdc">package + * javax.security.auth.kerberos KDC</a> + * @since 3.18.0 + */ + public static final String JAVA_SECURITY_KERBEROS_KDC = "java.security.krb5.kdc"; + + /** + * The System property name {@value}. + * + * @see <a href= "https://docs.oracle.com/en/java/javase/24/docs/api/system-properties.html">java.security.krb5.realm</a> + * @see <a href= + * "https://docs.oracle.com/en/java/javase/24/docs/api/java.security.jgss/javax/security/auth/kerberos/package-summary.html#java.security.krb5.realm">package + * javax.security.auth.kerberos realm</a> + * @since 3.18.0 + */ + public static final String JAVA_SECURITY_KERBEROS_REALM = "java.security.krb5.realm"; + /** * The System property name {@value}. * diff --git a/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java b/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java index 9e9c06d38..a587f547b 100644 --- a/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java +++ b/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java @@ -108,6 +108,9 @@ public void testActualKeys() { basicKeyCheck(SystemProperties.JAVA_RUNTIME_NAME); basicKeyCheck(SystemProperties.JAVA_RUNTIME_VERSION); basicKeyCheck(SystemProperties.JAVA_SECURITY_AUTH_LOGIN_CONFIG); + basicKeyCheck(SystemProperties.JAVA_SECURITY_KERBEROS_CONF); + basicKeyCheck(SystemProperties.JAVA_SECURITY_KERBEROS_KDC); + basicKeyCheck(SystemProperties.JAVA_SECURITY_KERBEROS_REALM); basicKeyCheck(SystemProperties.JAVA_SECURITY_DEBUG); basicKeyCheck(SystemProperties.JAVA_SECURITY_MANAGER); basicKeyCheck(SystemProperties.JAVA_SPECIFICATION_MAINTENANCE_VERSION);