首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mobilefirst插件不支持Android 9安全登录

Mobilefirst插件不支持Android 9安全登录
EN

Stack Overflow用户
提问于 2019-03-01 12:19:39
回答 1查看 262关注 0票数 0

cordova-插件-mfp

在AndoId9中使用时,会为WLAuthorizationManager.login抛出错误。

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-03-06 16:28:51

这个问题在Android 9发布时就已经解决了。要解决此问题,请升级到最新的IBM客户端MobileFirst。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54937886

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档