String priCert = comwangyinakssecuritysignutilBase64encodeFileUtilreadFilegetFilePathrootPath +secureFldgetStringPRI; String pubCert = comwangyinakssecuritysignutilBase64encodeFileUtilreadFileg
这段代码的意思是将指定路径下的私钥文件和公钥文件读取内容,并使用Base64编码成字符串形式。首先,getFilePath(rootPath +secureFld.getString("PRI"))获取私钥文件的路径,然后使用FileUtil.readFile()方法读取文件内容,再使用com.wangyin.aks.security.sign.util.Base64.encode()方法将文件内容进行Base64编码,最终将编码后的结果赋值给priCert变量。同样的步骤也适用于公钥文件,将编码后的结果赋值给pubCert变量。
原文地址: https://www.cveoy.top/t/topic/izb3 著作权归作者所有。请勿转载和采集!