}
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)