0

有谁知道怎么改密码java.security.KeyStore?这是我创建我的方式KeyStore

        keyStore = KeyStore.getInstance("PKCS12", BouncyCastleProvider.PROVIDER_NAME);
        keyStore.load(null, null);
        if (keyStore.containsAlias(CERTIFICATE_ALIAS)) {
            keyStore.deleteEntry(CERTIFICATE_ALIAS);
        }

        keyStore.setKeyEntry(PRIVATE_KEY_ALIAS, privateKey, password, chain);

        keyStoreFileOutputStream = application.openFileOutput(KEY_STORE_FILE_NAME, Application.MODE_PRIVATE);
        keyStore.store(keyStoreFileOutputStream, password);
4

0 回答 0