I am trying to access the KeyStore to access the certificates. My code is below. I am constantly getting the following exception. Don't know what is wrong. I have keystore_api as a used DC.
import com.sap.engine.interfaces.keystore.KeystoreManager;
import javax.naming.InitialContext;
protected KeyStore createKeyStore()
throws KeyStoreException
{
try {
InitialContext ctx = new InitialContext();
KeystoreManager manager = (KeystoreManager) ctx.lookup("keystore");
KeyStore keyStore = manager.getKeystore("TEST");
return keyStore;
} catch(Exception e) {
e.printStackTrace();
return null;
}
}
Error:
java.lang.NoClassDefFoundError: com/sap/engine/interfaces/keystore/KeystoreManager