Package org.eclipse.osgi.signedcontent
Interface SignedContentFactory
-
public interface SignedContentFactoryA factory used to createSignedContentobjects.The framework will register a factory implementation as an OSGi service. This service can be used to get
SignedContentfor a bundle. It can also be used to getSignedContentfor 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SignedContentgetSignedContent(java.io.File content)Returns aSignedContentobject for the specified content of a repository.SignedContentgetSignedContent(org.osgi.framework.Bundle bundle)Returns aSignedContentobject for the specified bundle.
-
-
-
Method Detail
-
getSignedContent
SignedContent getSignedContent(java.io.File content) throws java.io.IOException, java.security.InvalidKeyException, java.security.SignatureException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
Returns aSignedContentobject for the specified content of a repository.- Parameters:
content- the content of the repository- Returns:
- signed content for the specified repository
- Throws:
java.io.IOException- if an IO exception occurs while reading the repositoryjava.security.NoSuchProviderException- if there's no security provider for the signed contentjava.security.NoSuchAlgorithmException- if the cryptographic algorithm is not available for the signed contentjava.security.cert.CertificateException- if there is a problem with one of the certificates of the signed contentjava.security.SignatureException- if there is a problem with one of the signatures of the signed contentjava.security.InvalidKeyException- if there is a problem with one of the certificate keys of the signed content
-
getSignedContent
SignedContent getSignedContent(org.osgi.framework.Bundle bundle) throws java.io.IOException, java.security.InvalidKeyException, java.security.SignatureException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
Returns aSignedContentobject for the specified bundle.- Parameters:
bundle- the bundle to get a signed content for.- Returns:
- signed content for the specified bundle.
- Throws:
java.io.IOException- if an IO exception occurs while reading the bundle contentjava.security.NoSuchProviderException- if there's no security provider for the signed contentjava.security.NoSuchAlgorithmException- if the cryptographic algorithm is not available for the signed contentjava.security.cert.CertificateException- if there is a problem with one of the certificates of the signed contentjava.security.SignatureException- if there is a problem with one of the signatures of the signed contentjava.security.InvalidKeyException- if there is a problem with one of the certificate keys of the signed content
-
-