Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/s/t/stratuslab-client-14.03.0/stratuslab/marketplace/ManifestValidator.py   stratuslab-client(Download)
from stratuslab.ConfigHolder import ConfigHolder
from stratuslab.Exceptions import ExecutionException
from stratuslab.Signator import Signator
 
class ManifestValidator(object):
    def verifySignature(self, imageFilename, metadataFilename):
        signator = Signator(metadataFilename, self.configHolder)
        res = signator.validate()
        if res:
            raise ExecutionException('Failed to validate metadata file')

src/s/t/stratuslab-client-14.03.0/stratuslab/marketplace/Deprecator.py   stratuslab-client(Download)
from stratuslab import Util
from stratuslab.ManifestInfo import ManifestInfo
from stratuslab.Signator import Signator
from stratuslab.ConfigHolder import ConfigHolder
from stratuslab.AuthnCommand import P12Certificate
 
            # Sign and upload
            signator = Signator(tempDeprecatedMetadataFilename, self.configHolder)
 
            isError = signator.sign()

src/s/t/stratuslab-client-14.03.0/stratuslab/image/Uploader.py   stratuslab-client(Download)
from stratuslab.ManifestInfo import ManifestInfo
from stratuslab.Exceptions import ExecutionException
from stratuslab.Signator import Signator
from stratuslab.ConfigHolder import ConfigHolder
from stratuslab.Compressor import Compressor
    def _signManifest(self):
        configHolder = ConfigHolder(self.__dict__)
        signator = Signator(self.manifestFile, configHolder)
        rc = signator.sign()
        if rc: