signing
index
/home/aki/wrk/git-mozharness-ro/mozharness/mozilla/signing.py

Mozilla-specific signing methods.

 
Modules
       
os
re

 
Classes
       
mozharness.base.signing.AndroidSigningMixin(__builtin__.object)
MobileSigningMixin(mozharness.base.signing.AndroidSigningMixin, SigningMixin)
mozharness.base.signing.BaseSigningMixin(__builtin__.object)
SigningMixin
MobileSigningMixin(mozharness.base.signing.AndroidSigningMixin, SigningMixin)

 
class MobileSigningMixin(mozharness.base.signing.AndroidSigningMixin, SigningMixin)
    MobileSigningMixin {{{1
 
 
Method resolution order:
MobileSigningMixin
mozharness.base.signing.AndroidSigningMixin
SigningMixin
mozharness.base.signing.BaseSigningMixin
__builtin__.object

Methods defined here:
verify_android_signature(self, apk, script=None, key_alias='nightly', tools_dir='tools/', env=None)
Runs mjessome's android signature verification script.
This currently doesn't check to see if the apk exists; you may want
to do that before calling the method.

Methods inherited from mozharness.base.signing.AndroidSigningMixin:
align_apk(self, unaligned_apk, aligned_apk, error_level='error')
Zipalign apk.
Returns None on success, not None on failure.
passphrase(self)
postflight_passphrase(self)
sign_apk(self, apk, keystore, storepass, keypass, key_alias, remove_signature=True, error_list=None, log_level='info', error_level='error')
Signs an apk with jarsigner.
unsign_apk(self, apk, **kwargs)
verify_passphrases(self)

Data descriptors inherited from mozharness.base.signing.AndroidSigningMixin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from mozharness.base.signing.AndroidSigningMixin:
key_passphrase = None
store_passphrase = None

Methods inherited from SigningMixin:
create_complete_snippet(self, binary_path, version, buildid, url, snippet_dir, snippet_file='complete.txt', size=None, sha512_hash=None, error_level='error')
Create a complete snippet, and writes to file.
Returns True for success, False for failure.

Methods inherited from mozharness.base.signing.BaseSigningMixin:
query_filesize(self, file_path)
query_sha512sum(self, file_path)
# TODO this should be parallelized with the to-be-written BaseHelper!

 
class SigningMixin(mozharness.base.signing.BaseSigningMixin)
    Generic signing helper methods.
 
 
Method resolution order:
SigningMixin
mozharness.base.signing.BaseSigningMixin
__builtin__.object

Methods defined here:
create_complete_snippet(self, binary_path, version, buildid, url, snippet_dir, snippet_file='complete.txt', size=None, sha512_hash=None, error_level='error')
Create a complete snippet, and writes to file.
Returns True for success, False for failure.

Methods inherited from mozharness.base.signing.BaseSigningMixin:
query_filesize(self, file_path)
query_sha512sum(self, file_path)
# TODO this should be parallelized with the to-be-written BaseHelper!

Data descriptors inherited from mozharness.base.signing.BaseSigningMixin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        AndroidSignatureVerificationErrorList = [{'level': 'error', 'substr': 'command not found'}, {'explanation': 'Signature is invalid!', 'level': 'fatal', 'regex': <_sre.SRE_Pattern object at 0xb7e0c380>}, {'level': 'error', 'substr': 'filename not matched'}, {'level': 'error', 'substr': 'ERROR: Could not unzip'}, {'explanation': 'Not signed!', 'level': 'fatal', 'regex': <_sre.SRE_Pattern object at 0x8237148>}]
BaseErrorList = [{'level': 'error', 'substr': 'command not found'}]
ERROR = 'error'
FATAL = 'fatal'
SNIPPET_TEMPLATE = 'version=1\ntype=complete\nurl=%(url)s\nhashFunction...ld=%(buildid)s\nappv=%(version)s\nextv=%(version)s\n'