public static String creatJaasFile(String prefix, String suffix, JAASConfig jaasConfig) throws IOException {
        File krbConf = new File(System.getProperty("user.dir"));
        File temp = File.createTempFile(prefix, suffix, krbConf);
        temp.deleteOnExit();
        FileUtils.writeStringToFile(temp, jaasConfig.toString());
        return temp.getAbsolutePath();
    }
Utility methods for helping with security tasks.
Date: 2019/12/28
Company: www.dtstack.com
@author maqi
core/src/main/java/com/dtstack/flink/sql/util/AuthUtil.java