Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Decryption Jar issue in Saviynt

Abhishek_K
New Contributor
New Contributor

We have developed a JAR file, named DecryptionJar, to perform the following tasks:

1)Download an encrypted file from an SFTP server to Saviynt Data files.
2)Retrieve the private key and passphrase from Delinea Secret Server (via APIs) for decryption.
3)Decrypt the downloaded file and save it to Saviynt Data files.

Currently, with the JAR uploaded to Saviynt, we are successfully able to download the encrypted file 
and retrieve the private key and passphrase. However, we are encountering issues during the decryption process.

We have uploaded 5 JARs in Saviynt: DecryptionJar (Main JAR) 
and other 4 dependency JARs(bcpg-jdk18on-1.73, bcprov-jdk18on-1.73, jsch-0.1.542 and json-20240303)

The decryption process fails with the following error:

Abhishek_K_0-1725963345285.png

Please find the attached complete logs file.

The error appears to be due to a missing method in one of the dependency JARs.
Below is the code causing the error for reference.(line 258)

Abhishek_K_1-1725963345290.png

PGPUtil.getDecoderStream() is part of the dependency jar bcpg-jdk18on-1.73.jar
PGP is the encryption system that we are using here and the above JAR is required for the same.
We have also tried with the various versions of the dependency JAR, but the issue remains the same.

Note: This is working fine in local machine and not working in Saviynt. We have tried with both Java standalone project and springboot maven project.
We are using the version Java 8 to build the JAR file.

 

[This message has been edited by moderator to mask sensitive information]

11 REPLIES 11

Raghu
All-Star
All-Star

@Abhishek_K  you need map jdk also 8 v only.

jdk18on-1.73, bcprov-jdk18on-1.7

if using eclipse please map library jdk8 and build it and chekc it and first time jar upload need restrart saviynt end restrart the application and check it.


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Hi Raghu,
I have mapped Java SE-1.8  in the build path. 

Abhishek_K_0-1725967665420.png

Abhishek_K_1-1725967672116.png

Is this the same you are referring to?

Thanks,
Abhishek

 

NM
Honored Contributor II
Honored Contributor II

@Abhishek_K reference libraries should also be compatible with saviynt JDK 8.

Possible to share code to have a look?

Abhishek_K
New Contributor
New Contributor

Removed the Sensitive information and attached the code. Please check.

Raghu
All-Star
All-Star

@Abhishek_K  may i knw how jar calling attribtes ?

via job-> what is parameters ? how share ss


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

@Raghu Please find the job config as below.

Abhishek_K_0-1725969515679.png

 


Note: we are able to call the execute method in the jar and 3/4th of the code is working fine in saviynt and it fails at the decryption.

  • Did you tried to create Maven project ?

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Abhishek_K
New Contributor
New Contributor

We have tried with maven project too, it results in the same error.

Since its propriety code i will suggest raise support ticket for further troubleshooting 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

We have raised a support ticket and are currently awaiting a resolution from the Saviynt team.

NM
Honored Contributor II
Honored Contributor II

@Abhishek_K do update us if you hear from them..

 

Thanks!