Class: AppInfo::Android::Signature::Base
- Inherits:
-
Object
- Object
- AppInfo::Android::Signature::Base
- Defined in:
- lib/app_info/android/signatures/base.rb
Constant Summary collapse
- DESCRIPTION =
'APK Signature Scheme'
Instance Attribute Summary collapse
-
#verified ⇒ Object
readonly
Returns the value of attribute verified.
Class Method Summary collapse
Instance Method Summary collapse
- #certificates ⇒ Object abstract
- #description ⇒ Object
-
#initialize(parser) ⇒ Base
constructor
A new instance of Base.
- #logger ⇒ Object
- #scheme ⇒ Object
- #verify ⇒ Object abstract
Constructor Details
#initialize(parser) ⇒ Base
Returns a new instance of Base.
19 20 21 22 |
# File 'lib/app_info/android/signatures/base.rb', line 19 def initialize(parser) @parser = parser @verified = false end |
Instance Attribute Details
#verified ⇒ Object (readonly)
Returns the value of attribute verified.
17 18 19 |
# File 'lib/app_info/android/signatures/base.rb', line 17 def verified @verified end |
Class Method Details
.verify(parser) ⇒ Object
9 10 11 12 13 |
# File 'lib/app_info/android/signatures/base.rb', line 9 def self.verify(parser) instance = new(parser) instance.verify instance end |
Instance Method Details
#certificates ⇒ Object
This method is abstract.
Subclass and override #certificates to implement
30 31 32 |
# File 'lib/app_info/android/signatures/base.rb', line 30 def certificates raise NotImplementedError, ".#{__method__} method implantation required in #{self.class}" end |
#description ⇒ Object
38 39 40 |
# File 'lib/app_info/android/signatures/base.rb', line 38 def description "#{DESCRIPTION} #{scheme}" end |
#logger ⇒ Object
42 43 44 |
# File 'lib/app_info/android/signatures/base.rb', line 42 def logger @parser.logger end |
#scheme ⇒ Object
34 35 36 |
# File 'lib/app_info/android/signatures/base.rb', line 34 def scheme "v#{version}" end |
#verify ⇒ Object
This method is abstract.
Subclass and override #verify to implement
25 26 27 |
# File 'lib/app_info/android/signatures/base.rb', line 25 def verify raise NotImplementedError, ".#{__method__} method implantation required in #{self.class}" end |