您能否建议 PEM 读取私钥的替代课程。代码如下:
import com.amazonaws.auth.PEM;
public PrivateKey getPrivateKey(String filename1) throws Exception {
InputStream res= new FileInputStream(filename1);
PrivateKey key = PEM.readPrivateKey(res);
return key;
}