PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpecBase64decodeBase64privateKey; 中的 Base64decodeBase64 应该引入的命名空间是什么
这个方法是来自于 Apache Commons Codec 库的 Base64 类,因此需要引入该库的命名空间。可以使用以下语句导入:
import org.apache.commons.codec.binary.Base64;
原文地址: https://www.cveoy.top/t/topic/d2Hg 著作权归作者所有。请勿转载和采集!