Skip to content

Commit 7385e46

Browse files
committed
feat: improve annotation
1 parent 0f47d2d commit 7385e46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fluss-common/src/test/java/org/apache/fluss/security/auth/sasl/gssapi/GssapiSaslAuthTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void setup() throws Exception {
6161
keytab = new File(workDir, "fluss.keytab");
6262
File krb5Conf = kdc.getKrb5Conf();
6363

64-
// Generate principals for both server ('fluss') and client ('client') bound to 127.0.0.1.
64+
// Generate principals for both server ('fluss') bound to 127.0.0.1 and client ('client').
6565
kdc.createPrincipal(keytab, "fluss/127.0.0.1", "client");
6666

6767
// Overwrite the default krb5.conf if it exists. MiniKdc defaults to "localhost",
@@ -117,7 +117,7 @@ void testGssapiAuthentication() throws Exception {
117117
Configuration serverConf = new Configuration();
118118
serverConf.setString(SERVER_SASL_ENABLED_MECHANISMS_CONFIG.key(), "GSSAPI");
119119

120-
// Create server jass config
120+
// Create server jaas config
121121
String serverJaas =
122122
String.format(
123123
"com.sun.security.auth.module.Krb5LoginModule required "
@@ -163,10 +163,10 @@ public String protocol() {
163163

164164
while (!clientAuth.isCompleted() || !serverAuth.isCompleted()) {
165165
if (challenge != null) {
166-
// Server validates client's token and generates a response/challenge.
166+
// Server process client's token and generates a response/challenge.
167167
byte[] response = serverAuth.evaluateResponse(challenge);
168168

169-
// Client validates server's response (Mutual Authentication).
169+
// Client validates server's response (mutual authentication).
170170
challenge = (response != null) ? clientAuth.authenticate(response) : null;
171171

172172
} else {

0 commit comments

Comments
 (0)