}
void setBundleProtectionDomain(BundleImpl bundleImpl, BundleRevisionImpl revisionImpl) throws Exception
{
Object certificates = null;
SecurityProvider sp = getFramework().getSecurityProvider();
if ((sp != null) && (System.getSecurityManager() != null))
{
sp.checkBundle(bundleImpl);
Map signers = (Map) sp.getSignerMatcher(bundleImpl, Bundle.SIGNERS_TRUSTED);
certificates = signers.keySet().toArray(new java.security.cert.Certificate[0]);
}
revisionImpl.setProtectionDomain(
new BundleProtectionDomain(this, bundleImpl, certificates));
}