Package org.eclipse.osgi.internal.provisional.service.security

Examples of org.eclipse.osgi.internal.provisional.service.security.AuthorizationEngine$AuthEventDispatcher


    switch (event.getType()) {
      case BundleEvent.UPDATED :
        // fall through to INSTALLED
      case BundleEvent.INSTALLED :
        TrustEngineListener listener = TrustEngineListener.getInstance();
        AuthorizationEngine authEngine = listener == null ? null : listener.getAuthorizationEngine();
        if (authEngine != null) {
          BaseData baseData = (BaseData) ((AbstractBundle) bundle).getBundleData();
          SignedStorageHook hook = (SignedStorageHook) baseData.getStorageHook(SignedStorageHook.KEY);
          SignedContent signedContent = hook != null ? hook.signedContent : null;
          authEngine.authorize(signedContent, bundle);
        }
        break;
      default :
        break;
    }
View Full Code Here


    if (unresolved.size() > 0)
      resolveBundles((Bundle[]) unresolved.toArray(new Bundle[unresolved.size()]), false);
  }

  private void checkAuthorization(SignedContentImpl signedContent, Bundle bundle) {
    AuthorizationEngine authEngine = getAuthorizationEngine();
    if (authEngine != null)
      authEngine.authorize(signedContent, bundle);
  }
View Full Code Here

    if (unresolved.size() > 0)
      resolveBundles(unresolved.toArray(new Bundle[unresolved.size()]), false);
  }

  private void checkAuthorization(SignedContentImpl signedContent, Bundle bundle) {
    AuthorizationEngine authEngine = getAuthorizationEngine();
    if (authEngine != null)
      authEngine.authorize(signedContent, bundle);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.internal.provisional.service.security.AuthorizationEngine$AuthEventDispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.