Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.osgi.signedcontent
Interface SignedContentFactory


public interface SignedContentFactory

A factory used to create SignedContent objects.

The framework will register a factory implementation as an OSGi service. This service can be used to get SignedContent for a bundle. It can also be used to get SignedContent for a repository file. The supported formats for file repositories are jar files and directories containing the content of an extracted jar.

This interface is not intended to be implemented by clients.

Since:
3.4
Restriction:
This interface is not intended to be implemented by clients.

Method Summary
  SignedContent getSignedContent ( Bundle bundle)
          Returns a SignedContent object for the specified bundle.
  SignedContent getSignedContent ( File content)
          Returns a SignedContent object for the specified content of a repository.
 

Method Detail

getSignedContent


SignedContent getSignedContent(
File content)
                               throws 
IOException,
                                      
InvalidKeyException,
                                      
SignatureException,
                                      
CertificateException,
                                      
NoSuchAlgorithmException,
                                      
NoSuchProviderException
Returns a SignedContent object for the specified content of a repository.

Parameters:
content - the content of the repository
Returns:
signed content for the specified repository
Throws:
IOException - if an IO exception occurs while reading the repository
NoSuchProviderException - if there's no security provider for the signed content
NoSuchAlgorithmException - if the cryptographic algorithm is not available for the signed content
CertificateException - if there is a problem with one of the certificates of the signed content
SignatureException - if there is a problem with one of the signatures of the signed content
InvalidKeyException - if there is a problem with one of the certificate keys of the signed content

getSignedContent


SignedContent getSignedContent(
Bundle bundle)
                               throws 
IOException,
                                      
InvalidKeyException,
                                      
SignatureException,
                                      
CertificateException,
                                      
NoSuchAlgorithmException,
                                      
NoSuchProviderException
Returns a SignedContent object for the specified bundle.

Parameters:
bundle - the bundle to get a signed content for.
Returns:
signed content for the specified bundle.
Throws:
IOException - if an IO exception occurs while reading the bundle content
NoSuchProviderException - if there's no security provider for the signed content
NoSuchAlgorithmException - if the cryptographic algorithm is not available for the signed content
CertificateException - if there is a problem with one of the certificates of the signed content
SignatureException - if there is a problem with one of the signatures of the signed content
InvalidKeyException - if there is a problem with one of the certificate keys of the signed content

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire