public interface SignedContentFactory
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.
| Modifier and Type | Method and Description |
|---|---|
SignedContent |
getSignedContent(Bundle bundle)
Returns a
SignedContent object for the specified bundle. |
SignedContent |
getSignedContent(java.io.File content)
Returns a
SignedContent object for the specified content of a repository. |
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
SignedContent object for the specified content of a repository.content - the content of the repositoryjava.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 contentSignedContent getSignedContent(Bundle bundle) throws java.io.IOException, java.security.InvalidKeyException, java.security.SignatureException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
SignedContent object for the specified bundle.bundle - the bundle to get a signed content for.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
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.