Class: AppInfo::Android::Signature::V1
- Defined in:
- lib/app_info/android/signatures/v1.rb
Overview
Android v1 Signature
Constant Summary collapse
- DESCRIPTION =
'JAR signing'
- PKCS7_HEADER =
[0x30, 0x82].freeze
Instance Attribute Summary collapse
-
#certificates ⇒ Object
readonly
Returns the value of attribute certificates.
-
#signatures ⇒ Object
readonly
Returns the value of attribute signatures.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #logger, #scheme, verify
Constructor Details
This class inherits a constructor from AppInfo::Android::Signature::Base
Instance Attribute Details
#certificates ⇒ Object (readonly)
Returns the value of attribute certificates.
12 13 14 |
# File 'lib/app_info/android/signatures/v1.rb', line 12 def certificates @certificates end |
#signatures ⇒ Object (readonly)
Returns the value of attribute signatures.
12 13 14 |
# File 'lib/app_info/android/signatures/v1.rb', line 12 def signatures @signatures end |
Instance Method Details
#description ⇒ Object
18 19 20 |
# File 'lib/app_info/android/signatures/v1.rb', line 18 def description DESCRIPTION end |
#verify ⇒ Object
22 23 24 25 26 27 |
# File 'lib/app_info/android/signatures/v1.rb', line 22 def verify @signatures = fetch_signatures @certificates = fetch_certificates raise NotFoundError, 'Not found certificates' if @certificates.empty? end |