Package org.eclipse.osgi.framework.adaptor

Examples of org.eclipse.osgi.framework.adaptor.BundleData


    }
    return new SignedContentFile(result.getSignedContent());
  }

  public SignedContent getSignedContent(Bundle bundle) throws IOException, InvalidKeyException, SignatureException, CertificateException, NoSuchAlgorithmException, NoSuchProviderException, IllegalArgumentException {
    final BundleData data = ((AbstractBundle) bundle).getBundleData();
    if (!(data instanceof BaseData))
      throw new IllegalArgumentException("Invalid bundle object.  No BaseData found."); //$NON-NLS-1$
    SignedStorageHook hook = (SignedStorageHook) ((BaseData) data).getStorageHook(SignedStorageHook.KEY);
    SignedContent result = hook != null ? hook.signedContent : null;
    if (result != null)
View Full Code Here


    }
    return new SignedContentFile(result.getSignedContent());
  }

  public SignedContent getSignedContent(Bundle bundle) throws IOException, InvalidKeyException, SignatureException, CertificateException, NoSuchAlgorithmException, NoSuchProviderException, IllegalArgumentException {
    final BundleData data = ((AbstractBundle) bundle).getBundleData();
    if (!(data instanceof BaseData))
      throw new IllegalArgumentException("Invalid bundle object.  No BaseData found."); //$NON-NLS-1$
    SignedStorageHook hook = (SignedStorageHook) ((BaseData) data).getStorageHook(SignedStorageHook.KEY);
    SignedContent result = hook != null ? hook.signedContent : null;
    if (result != null)
View Full Code Here

    result.setBundleFile(contentBundleFile, VERIFY_ALL);
    return result;
  }

  public CertificateVerifier getVerifier(Bundle bundle) throws IOException {
    BundleData data = ((AbstractBundle) bundle).getBundleData();
    if (!(data instanceof BaseData))
      throw new IllegalArgumentException("Invalid bundle object.  No BaseData found."); //$NON-NLS-1$
    SignedStorageHook hook = (SignedStorageHook) ((BaseData)data).getStorageHook(SignedStorageHook.KEY);
    SignedBundleFile signedBundle = hook != null ? hook.signedBundleFile : null;
    if (signedBundle != null)
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.framework.adaptor.BundleData

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.