Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
Posts: 6
Registered: ‎06-10-2013
My Device: Torch
My Carrier: Vodafone

Invoking import of certificates - data parameters for wifi / vpn / password

With the following code it is possible to import a certificate directly from an application by providing the path to the certificate (work at least starting 10.2.1):

 

 

InvokeManager* invokeManager = new bb::system::InvokeManager();
InvokeRequest cardRequest;
cardRequest.setTarget("sys.settings.card");

QString pathString = "file://"+ QDir::currentPath() + filePath;
cardRequest.setUri( pathString);
cardRequest.setPerimeter( bb::system::SecurityPerimeter::Enterprise );
cardRequest.setAction("bb.action.OPEN");
QVariantMap data;
data["import"] = "true";
cardRequest.setMetadata(data);

InvokeTargetReply* reply = invokeManager->invoke(cardRequest);

 

 

1) If I import a certificate / Signature (based on the .pem file format)

using my app in work permimeter then the import is starting.

But the card shows a screen that demands clarifying the wifi / vpn use of the certificate.

Is it possible to pass this information by parameters e.g. in the QVariantMap data?

 

2) Is it possible to give password information by parameters e.g. in the QVariantMap data?

 

Thanks in advance ;-)