cancel
Showing results for 
Search instead for 
Did you mean: 

Java Mapping for Inserting digital signature using keystore in PI 7.1

Former Member
0 Kudos

Hello Experts,

I'm working on java mapping which will insert digital signature using keystore in NWA. But stuck with code.

Part 1:

in order to access KeyStore, I need to access KeyStoreManager.

Now, Here is problem, in order to access KeyStoreManager i need access to SAPSecurityResources.

I tried,

import com.sap.aii.af.service.resource.SAPSecurityResources; 


it is showing me error in NWDS. Could anyone help me with correct jar file (relevent to PI 7.1)which will have this SAPSecurityResources.

Part 2:

I also tried creating KeystoreManagerWrapper class but again it gives me error. I guess this technique only works in PI 7.0. Can anyone help me with other options which I can use in JAVA mapping.

Reference Link which I gone through recently:

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

>>>I also tried creating KeystoreManagerWrapper class but again it gives me error.

What is the error that you are getting here. This should work with higher version as well(>7.3)

import com.sap.engine.services.keystore.interfaces.KeystoreManagerWrapper;

Former Member
0 Kudos

Hello Hareesh,

It is showing error in NWDS for below statement,

import com.sap.engine.services.keystore.interfaces.KeystoreManagerWrapper;

Please let me know if any jar file (from PI 7.1) which I need to include to reference this class in my project.

Thanks,

Amit

former_member184720
Active Contributor
0 Kudos

Yes. You need to add "sap.com-tc-je-keystore_api-API.jar"

You may find this at /usr/sap/<<SID>>/J<<SysNo>>/j2ee/cluster/bin/interfaces/keystore_api/lib/private/

Former Member
0 Kudos

Hello Hareesh,

Your suggestion for Jar file & location helped to solve problem.

Thank you.

Regards

Amit

Answers (0)