Question
Toyota
AU
Last activity: 15 Jun 2023 4:06 EDT
Encryption Using certificate
I've got a requirement to encrypt a byte stream using a certificate/.jks file which I store in the Pega keystore. Is there any OOTB java method available to perform this action? Any suggestion would be highly appreciated.
Using the below java code I can get the certificate value in cert, but unable to figure out how to put encryption on an steam using this cert. any method?
ClipboardPage primaryPage = tools.getPrimaryPage(); KeyStoreUtils keystoreUtils = ((PegaAPI)tools).getKeyStoreUtils(); java.security.cert.Certificate cert = keystoreUtils.getCertificate(tools.getParamValue("KeystoreName"), tools.getParamValue("Alias"));