0
我現在正致力於在android上創建PKCS#10 CSR。在android上使用bulit-in bouncy castle library
然而,下面的類不能在與Android的Eclipse IDE編譯sdk10 (以下做工精細的代碼,充氣城堡1.47與PC)
我覺得我的Android SDK中不包括充氣城堡庫
因爲函數'PKCS10CertificationRequest未被識別
public class PKCS10Generater
{
public static PKCS10CertificationRequest generateRequest(
KeyPair pair)
throws Exception
{
return new PKCS10CertificationRequest(
"SHA256withRSA",
new X500Principal("CN=Test CA Certificate"),
//new X500Principal("CN=end"),
pair.getPublic(),
null,
pair.getPrivate());
}