java.lang.IllegalArgumentException:无效的身份验证类型:想要
我有一个网络服务方法,在 tomcat 中启用 FIPS 模式之前该方法可以正常工作。 如果禁用 FIPS 模式,下面的代码可以正常执行:
((X509TrustManager) tm[0]).checkClientTrusted(clientCert, "want");
但是当在 tomcat 上启用 FIPS 时。同一行抛出异常: java.lang.IllegalArgumentException:无效的身份验证类型:想要
。
我浏览了 java doc,它说方法在以下情况下抛出 IllegalArgumentException: IllegalArgumentException - 如果为 chain 参数传入 null 或零长度链,或者为 authType 参数传入 null 或零长度字符串。
但就我而言,上述条件都不成立。
不明白为什么。请帮忙。
I have a web-service method which works fine until enabling FIPS mode in tomcat.
The code bellow executes fine if FIPS mode is disable:
((X509TrustManager) tm[0]).checkClientTrusted(clientCert, "want");
But when FIPS get enable on tomcat. Same line throws exception as:java.lang.IllegalArgumentException: Invalid authentication type: want
.
I gone through java doc, it says method throws IllegalArgumentException if:
IllegalArgumentException - if null or zero-length chain is passed in for the chain parameter or if null or zero-length string is passed in for the authType parameter.
But neither of above condition is true in my case.
Not getting why. Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论