oracle - What is Java equivalent for .net EnvelopedCms -


i need rewrite .net function below java without using bouncycastle. because has run java stored procedure @ oracle 11g database (it has java 1.5). jars loaded database unpacked , that's why variant bouncycastle fails: jce cannot authenticate provider bc.

or if know how load jar (understand whole jar) oracle database jvm. loadjava extracts classes that's why can't work bc.

protected byte[] encrypt(ref byte[] content, ref x509certificate2[]     recipients) {   contentinfo ci = new contentinfo(content);   envelopedcms cms = new envelopedcms(ci);   cmsrecipientcollection rcps = new cmsrecipientcollection();   foreach (var recipient in recipients)   {     rcps.add(new cmsrecipient(recipient));   }   cms.encrypt(rcps);   return cms.encode(); } 


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -