Java抛出非法密钥大小异常

时间:2019-04-25 05:33:57

标签: idp

我们正在将Windows Server从2012年迁移到2016年。在解密下面的代码(从WebSSOProfileConsumerImpl.processAuthenticationResponse()方法从IDP发送的SAML断言时,我遇到了一个问题)。 断言decryptedAssertion = context.getLocalDecrypter()。decrypt(ea);

如本博客中的建议“ Error while decrypting assertion sent from IDP”所示,我已下载JCE并更新了$ JAVA_HOME / jre {version_number} / lib / security /文件夹中提到的jar。 但是它仍然抛出相同的错误。 “解密加密的数据元素时出错:org.apache.xml.security.encryption.XMLEncryptionException:密钥大小非法 原始异常是java.security.InvalidKeyException:密钥大小非法”。

请有人建议我解决此问题。

0 个答案:

没有答案