Class: AppInfo::MobileProvision::DeveloperCertificate
- Defined in:
- lib/app_info/ipa/mobile_provision.rb
Overview
Developer Certificate
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #created_date ⇒ Object
- #expired_date ⇒ Object
-
#initialize(data) ⇒ DeveloperCertificate
constructor
A new instance of DeveloperCertificate.
- #name ⇒ Object
Constructor Details
#initialize(data) ⇒ DeveloperCertificate
Returns a new instance of DeveloperCertificate.
244 245 246 |
# File 'lib/app_info/ipa/mobile_provision.rb', line 244 def initialize(data) @raw = OpenSSL::X509::Certificate.new(data) end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
242 243 244 |
# File 'lib/app_info/ipa/mobile_provision.rb', line 242 def raw @raw end |
Instance Method Details
#created_date ⇒ Object
252 253 254 |
# File 'lib/app_info/ipa/mobile_provision.rb', line 252 def created_date @raw.not_after end |
#expired_date ⇒ Object
256 257 258 |
# File 'lib/app_info/ipa/mobile_provision.rb', line 256 def expired_date @raw.not_before end |
#name ⇒ Object
248 249 250 |
# File 'lib/app_info/ipa/mobile_provision.rb', line 248 def name @raw.subject.to_a.find { |name, _, _| name == 'CN' }[1] end |