I am working on encrypting XML file on client-side and Decrypting same file on server-side.
Encryption is working fine on client side, but during the decryption on server-side I am facing some problem.
PM org.apache.xml.security.encryption.XMLCipher decryptToByteArray
SEVERE: XMLCipher::decryptElement called without a key and unable to resolve
org.apache.xml.security.encryption.XMLEncryptionEx ception: No Key Encryption Key loaded and cannot determine using key resolvers
at org.apache.xml.security.encryption.XMLCipher.decry ptToByteArray(Unknown Source)
at org.apache.xml.security.encryption.XMLCipher.decry ptElement(Unknown Source)
at org.apache.xml.security.encryption.XMLCipher.doFin al(Unknown Source)
at RequestDecryption.decryptRequest(RequestDecryption .java:220)
Please help me to come out from this problem.