public void init() throws ServletException {
    if (jwtAuthEnabled && jwtValidator == null) {
      try {
        jwtValidator = new JWTValidator(this.conf);
      } catch (Exception e) {
        throw new ServletException("Failed to initialize ServletSecurity."
            + " Error: " + e);
      }
    }
  }
Should be called in Servlet.init()
@throws ServletException if the jwt validator creation throws an exception
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ServletSecurity.java