cancel
Showing results for 
Search instead for 
Did you mean: 

Error accessing NetWeaver AS KeyStorage

Former Member
0 Kudos
222

Hi.

As part of our solution we need to encrypt sensitive data handled by our application, and we would like to keep it using SAP NetWeaver tools. It means we have to use SAP API to access the server Security Key Storage.

First of all, we are using NetWeaver CE 7.2 (SP4) application server.

Scenario

We have an EJB Module which we configured to use the following LIBS...

  • com.sap.aii.af.lib.facade
  • com.sap.aii.af.svc.facade

... which allowed us to use the SAPSecurityResources API. With this API we are able to access the Key Storage configured in NWA, and then encrypt the data we need.

We developed this using the following doc: http://help.sap.com/saphelp_nw73/helpdata/en/43/a52f2e63161bbfe10000000a1553f7/frameset.htm

Problem

When we instantiate the API it is throwing an exception from what seems to be a dependency we are missing to realize, used inside the API, but we are not beeing able to find in which library it is located:

Code to start the API: Thats the first command, when we get the AS Key Storage to have access to Private/Public/Secret keys.

SAPSecurityResources secRes = SAPSecurityResources.getInstance();

Exception that is thrown: The type SecurityException is declared inside the API class in a catch/throw block. It is not beeing able to find those classes.

Caused by: java.lang.ClassNotFoundException: com.sap.aii.security.lib.exception.SecurityException

The JARs that are reference in the actual LIBs:

  • com.sap.aii.af.lib.facade.jar
  • com.sap.aii.af.cpa.svc.filter.jar
  • com.sap.aii.af.lib.filter.jar
  • com.sap.aii.af.svc.facade.jar
  • com.sap.aii.sec.lib.filter.jar
  • com.sap.aii.af.svc.filter.jar

We already tried to add other libraries into the dependency involving "secure" labels but we didnt manage to realize this dependency.

Anyonw knows which librarie should we add to our depency to solve this problem?
Is this the best approach that you would suggest to solve this encrypt solution in NetWeaver applications?

Please lemme know if any other information is needed to help understand my situation.

Best regards,

EP

View Entire Topic
Former Member
0 Kudos

Problem solved.

We were using the wrong libraries. For Componsition Environment the following link should be used to access the Key Storage of the AS:

http://help.sap.com/saphelp_nwce71/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm

syedijlalayub
Explorer
0 Kudos
Hi<
syedijlalayub
Explorer
0 Kudos
Hi,