From 33407d4aaeccd5da6ec5b5e628ce8fb67209c32b Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 30 Oct 2025 19:30:11 -0400 Subject: [PATCH] more comment fixes --- .../security/krb5/native/NativeCredentialCacheHelper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/jdk/sun/security/krb5/native/NativeCredentialCacheHelper.java b/test/jdk/sun/security/krb5/native/NativeCredentialCacheHelper.java index 511d35ce88b..4e3b3767a93 100644 --- a/test/jdk/sun/security/krb5/native/NativeCredentialCacheHelper.java +++ b/test/jdk/sun/security/krb5/native/NativeCredentialCacheHelper.java @@ -38,15 +38,15 @@ public class NativeCredentialCacheHelper { } /** - * Create an in-memory credential cache using native krb5 calls. + * Create an in-memory credential cache using native krb5 API. * @param cacheName The name for the in-memory cache (e.g., "MEMORY:test123") * @return true if cache was created successfully, false otherwise */ public static native boolean createInMemoryCache(String cacheName); /** - * Copy real credentials from a source cache to the in-memory cache. - * This preserves the proper Kerberos credential format for JAAS access. + * Copy real Kerberos credentials from a source cache to an in-memory cache. + * Used to move OneKDC-generated TGTs to an in-memory cache for testing. * @param inMemoryCacheName The target in-memory cache name (e.g., "MEMORY:test123") * @param sourceCacheName The source cache name (null for default cache) * @return true if credentials were copied successfully, false otherwise @@ -54,7 +54,7 @@ public class NativeCredentialCacheHelper { public static native boolean copyCredentialsToInMemoryCache(String inMemoryCacheName, String sourceCacheName); /** - * Set the default credential cache to the specified credential cache. + * Set KRB5CCNAME so that the test will pick up the in-memory credential cache. * @param cacheName The credential cache name to set as default * @return true if set successfully, false otherwise */