特定のアルゴリズム ( http://www.tta.or.kr/2001/04/xmlenc#seed-cbc )で xml メッセージを暗号化する必要があり、org.apache.xml.security.encryption を使用したいと考えています。 XMLCipher クラス (xmlsec 1.5.6)。
bouncycastle プロバイダーを追加しようとしましたが、xmlCipher クラス (getProviderInstance()、getProvider()...) を初期化する方法をいくつか試しましたが、すべて失敗しました。
警告が表示されるたびに:
WARNING: Algorithm non-standard, expected one of http://www.w3.org/2001/04/xmlenc#tripledes-cbc
http://www.w3.org/2001/04/xmlenc#aes128-cbc
http://www.w3.org/2001/04/xmlenc#aes256-cbc
http://www.w3.org/2001/04/xmlenc#aes192-cbc
http://www.w3.org/2001/04/xmlenc#rsa-1_5
http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p
http://www.w3.org/2009/xmlenc11#rsa-oaep
http://www.w3.org/2001/04/xmlenc#kw-tripledes
http://www.w3.org/2001/04/xmlenc#kw-aes128
http://www.w3.org/2001/04/xmlenc#kw-aes256
http://www.w3.org/2001/04/xmlenc#kw-aes192
http://www.w3.org/2009/xmlenc11#aes128-gcm
http://www.w3.org/2009/xmlenc11#aes192-gcm
http://www.w3.org/2009/xmlenc11#aes256-gcm
および対応する例外:
org.apache.xml.security.encryption.XMLEncryptionException: No transformation given
XmlCipher を使用する場合、 http: //www.tta.or.kr/2001/04/xmlenc#seed-cbcを定義することは可能ですか?