deniskuzZ commented on code in PR #5606:
URL: https://github.com/apache/hive/pull/5606#discussion_r1967589209


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PropertyServlet.java:
##########
@@ -64,15 +59,20 @@ public class PropertyServlet extends HttpServlet {
   public static final Logger LOGGER = 
LoggerFactory.getLogger(PropertyServlet.class);
   /** The configuration. */
   private final Configuration configuration;
-  /** The security. */
-  private final ServletSecurity security;
 
-  PropertyServlet(Configuration configuration) {
+  static boolean isAuthJwt(Configuration configuration) {
     String auth = MetastoreConf.getVar(configuration, 
MetastoreConf.ConfVars.PROPERTIES_SERVLET_AUTH);
-    boolean jwt = auth != null && "jwt".equals(auth.toLowerCase());
-    this.security = new ServletSecurity(configuration, jwt);
+    return "jwt".equalsIgnoreCase(auth);
+  }
+
+  PropertyServlet(Configuration configuration) {
     this.configuration = configuration;
   }
+
+  @Override public String getServletName() {

Review Comment:
   new line



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to