Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#2161] Improvement: Fix JavaDoc in KerberosServerUtils.java (#2212)

Ziva Lia1f1fe6a3ec7
diff --git a/server-common/src/main/java/com/datastrato/gravitino/server/auth/KerberosServerUtils.java b/server-common/src/main/java/com/datastrato/gravitino/server/auth/KerberosServerUtils.java
index 7b7827dd49..2e48db1a23 100644
--- a/server-common/src/main/java/com/datastrato/gravitino/server/auth/KerberosServerUtils.java
+++ b/server-common/src/main/java/com/datastrato/gravitino/server/auth/KerberosServerUtils.java
@@ -1,13 +1,13 @@
-/**
+/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
- * <p>http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * <p>Unless required by applicable law or agreed to in writing, software distributed under the
+ * Unless required by applicable law or agreed to in writing, software distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing permissions and
* limitations under the License.
@@ -77,22 +77,21 @@ public class KerberosServerUtils {
}
}
- /*
- * For a Service Host Principal specification, map the host's domain
- * to kerberos realm, as specified by krb5.conf [domain_realm] mappings.
- * Unfortunately the mapping routines are private to the security.krb5
- * package, so have to construct a PrincipalName instance to derive the realm.
+ /**
+ * For a Service Host Principal specification, map the host's domain to kerberos realm, as
+ * specified by krb5.conf [domain_realm] mappings. Unfortunately the mapping routines are private
+ * to the security.krb5 package, so have to construct a PrincipalName instance to derive the
+ * realm.
*
- * Many things can go wrong with Kerberos configuration, and this is not
- * the place to be throwing exceptions to help debug them. Nor do we choose
- * to make potentially voluminous logs on every call to a communications API.
- * So we simply swallow all exceptions from the underlying libraries and
- * return null if we can't get a good value for the realmString.
+ * <p>Many things can go wrong with Kerberos configuration, and this is not the place to be
+ * throwing exceptions to help debug them. Nor do we choose to make potentially voluminous logs on
+ * every call to a communications API. So we simply swallow all exceptions from the underlying
+ * libraries and return null if we can't get a good value for the realmString.
*
* @param shortprinc A service principal name with host fqdn as instance, e.g.
* "HTTP/myhost.mydomain"
- * @return String value of Kerberos realm, mapped from host fqdn
- * May be default realm, or may be null.
+ * @return String value of Kerberos realm, mapped from host fqdn May be default realm, or may be
+ * null.
*/
public static String getDomainRealm(String shortprinc) {
Class<?> classRef;