See: Description
| Interface | Description |
|---|---|
| Certificate |
This interface represents X.509 Certificate.
|
| CertificateEvent |
Holds information about change of a bundle, which has been occured in the bundle inventory.
|
| CertificateListener |
Provide means for monitoring the changed into the Certificate Repository.
|
| CertificateManager |
This interface is used to manage a repository of certificates.
|
|
import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; import com.prosyst.mprm.admin.certificate.CertificateManager; ..... public ChargeHelper getCertificateManager(BundleContext context) { CertificateManager helper = null; ServiceReference managerRef = context.getServiceReference(CertificateManager.class.getName()); if (managerRef != null) { manager = (CertificateManager)context.getService(managerRef); } return manager; } ..... |
com.prosyst.mprm.rac.RemoteAccessClient. An external stand-alone application can use this package by including gm-rac.jar in its classpath.
|
import java.util.Hashtable; import com.prosyst.mprm.rac.RemoteAccessClient; import com.prosyst.mprm.admin.certificate.CertificateManager; ..... public static CertificateManager getCertificateManager(RemoteAccessClient rac) { CertificateManager manager = null; if (rac != null) { manager = (CertificateManager)rac.getService(CertificateManager.class.getName()); } return manager; } ..... public static void main(String[] args) { //Open session using the system account. Hashtable credentials = new Hashtable(); credentials.put(RemoteAccessClient.USER_PASSWORD, "system"); RemoteAccessClient rac = RemoteAccessClient.connect("socket://mprm.acme.com:11449", "system", credentials, null); ... //Now the application can access mPRM CertificateManager service CertificateManager manager = getCertificateManager(rac); ... //closing session rac.close(); } ..... |
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.