Плагин Mobilefirst не поддерживает Android 9 для входа в систему безопасности - PullRequest
0 голосов
/ 01 марта 2019

cordova-plugin-mfp

При использовании в Andoird 9 выдает ошибку для WLAuthorizationManager.login.

03-01 09:05:21.852   660 25727 I netd    : ;; res_nquery(ukd-climf8.peluk.org, 1, 1)
03-01 09:05:22.527 25320 25454 D com.worklight.androidgap.plugin.ChallengeHandlerPlugin: ChallengeHandlerPlugin.execute in ChallengeHandlerPlugin.java:42 :: inside ChallengeHandlerPlugin execute for action createSecurityCheckChallengeHandler
03-01 09:05:22.528 25320 25538 W System.err: java.lang.Error: java.security.NoSuchAlgorithmException: The BC provider no longer provides an implementation for KeyPairGenerator.RSA.  Please see https://android-developers.googleblog.com/2018/03/cryptography-changes-in-android-p.html for more details.
03-01 09:05:22.529 25320 25538 W System.err:    at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.invokeRegistrationRequest(WLAuthorizationManagerInternal.java:751)
03-01 09:05:22.529 25320 25538 W System.err:    at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.invokeRegistrationRequest(WLAuthorizationManagerInternal.java:473)
03-01 09:05:22.529 28397 28397 I PhenotypeExpConfig: refreshConfiguration() : Force = false : UpdateAvailable = false : Age = 9 minutes : MaxAge = 720 minutes
03-01 09:05:22.529 25320 25538 W System.err:    at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.loginWithRegistration(WLAuthorizationManagerInternal.java:1294)
03-01 09:05:22.529 25320 25538 W System.err:    at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.login(WLAuthorizationManagerInternal.java:486)
03-01 09:05:22.530 28397 28397 I AndroidIME: PasswordIme.onDeactivate()
03-01 09:05:22.530 25320 25538 W System.err:    at com.worklight.wlclient.api.WLAuthorizationManager.login(WLAuthorizationManager.java:125)
03-01 09:05:22.530 25320 25538 W System.err:    at com.worklight.androidgap.plugin.WLAuthorizationManagerPlugin.execute(WLAuthorizationManagerPlugin.java:157)
03-01 09:05:22.530 25320 25538 W System.err:    at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
03-01 09:05:22.530 25320 25538 W System.err:    at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
03-01 09:05:22.530 25320 25538 W System.err:    at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:57)
03-01 09:05:22.530 25320 25538 W System.err:    at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
03-01 09:05:22.530 25320 25538 W System.err:    at android.os.MessageQueue.nativePollOnce(Native Method)
03-01 09:05:22.531 25320 25538 W System.err:    at android.os.MessageQueue.next(MessageQueue.java:326)
03-01 09:05:22.531 25320 25538 W System.err:    at android.os.Looper.loop(Looper.java:160)
03-01 09:05:22.531 25320 25538 W System.err:    at android.os.HandlerThread.run(HandlerThread.java:65)
03-01 09:05:22.531 25320 25538 W System.err: Caused by: java.security.NoSuchAlgorithmException: The BC provider no longer provides an implementation for KeyPairGenerator.RSA.  Please see https://android-developers.googleblog.com/2018/03/cryptography-changes-in-android-p.html for more details.
03-01 09:05:22.532 25320 25538 W System.err:    at sun.security.jca.Providers.checkBouncyCastleDeprecation(Providers.java:563)
03-01 09:05:22.532 25320 25538 W System.err:    at sun.security.jca.Providers.checkBouncyCastleDeprecation(Providers.java:330)
03-01 09:05:22.532 25320 25538 W System.err:    at java.security.KeyPairGenerator.getInstance(KeyPairGenerator.java:303)
03-01 09:05:22.532 25320 25538 W System.err:    at com.worklight.common.security.WLCertManager.generateKeyPair(WLCertManager.java:108)
03-01 09:05:22.532 25320 25454 D com.worklight.androidgap.plugin.ChallengeHandlerPlugin: ChallengeHandlerPlugin.execute in ChallengeHandlerPlugin.java:49 :: inside ChallengeHandlerPlugin createSecurityCheckChallengeHandler
03-01 09:05:22.532 25320 25538 W System.err:    at com.worklight.common.security.WLOAuthCertManager.generateKeyPair(WLOAuthCertManager.java:80)
03-01 09:05:22.532 25320 25538 W System.err:    at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.signRegistrationData(WLAuthorizationManagerInternal.java:758)
03-01 09:05:22.532 25320 25538 W System.err:    at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.getRegistrationParams(WLAuthorizationManagerInternal.java:591)
03-01 09:05:22.532 25320 25538 W System.err:    at com.worklight.wlclient.auth.WLAuthorizationManagerInternal.invokeRegistrationRequest(WLAuthorizationManagerInternal.java:711)
03-01 09:05:22.533 25320 25538 W System.err:    ... 13 more

1 Ответ

0 голосов
/ 06 марта 2019

Эта проблема была решена сразу после выхода Android 9.Обновите до последней версии SDK клиента IBM MobileFirst для решения этой проблемы.

...