Class: Nfe::CertificateInfo
- Inherits:
-
Data
- Object
- Data
- Nfe::CertificateInfo
- Defined in:
- lib/nfe/certificate.rb,
sig/nfe/certificate.rbs
Overview
Metadata extracted from a digital certificate (A1 PKCS#12) parsed locally.
not_before / not_after are Time instances; serial_number is a
decimal String.
Instance Attribute Summary collapse
-
#issuer ⇒ String
readonly
Returns the value of attribute issuer.
-
#not_after ⇒ Time?
readonly
Returns the value of attribute not_after.
-
#not_before ⇒ Time?
readonly
Returns the value of attribute not_before.
-
#serial_number ⇒ String
readonly
Returns the value of attribute serial_number.
-
#subject ⇒ String
readonly
Returns the value of attribute subject.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ CertificateInfo
constructor
A new instance of CertificateInfo.
Constructor Details
#initialize(subject:, issuer:, not_before:, not_after:, serial_number:) ⇒ void #initialize(subject, issuer, not_before, not_after, serial_number) ⇒ void
Returns a new instance of CertificateInfo.
12 13 |
# File 'sig/nfe/certificate.rbs', line 12
def initialize: (subject: String, issuer: String, not_before: Time?, not_after: Time?, serial_number: String) -> void
| (String subject, String issuer, Time? not_before, Time? not_after, String serial_number) -> void
|
Instance Attribute Details
#issuer ⇒ String (readonly)
Returns the value of attribute issuer.
4 5 6 |
# File 'sig/nfe/certificate.rbs', line 4 def issuer @issuer end |
#not_after ⇒ Time? (readonly)
Returns the value of attribute not_after.
6 7 8 |
# File 'sig/nfe/certificate.rbs', line 6 def not_after @not_after end |
#not_before ⇒ Time? (readonly)
Returns the value of attribute not_before.
5 6 7 |
# File 'sig/nfe/certificate.rbs', line 5 def not_before @not_before end |
#serial_number ⇒ String (readonly)
Returns the value of attribute serial_number.
7 8 9 |
# File 'sig/nfe/certificate.rbs', line 7 def serial_number @serial_number end |
#subject ⇒ String (readonly)
Returns the value of attribute subject.
3 4 5 |
# File 'sig/nfe/certificate.rbs', line 3 def subject @subject end |
Class Method Details
.new(subject:, issuer:, not_before:, not_after:, serial_number:) ⇒ instance .new(subject, issuer, not_before, not_after, serial_number) ⇒ instance
9 10 |
# File 'sig/nfe/certificate.rbs', line 9
def self.new: (subject: String, issuer: String, not_before: Time?, not_after: Time?, serial_number: String) -> instance
| (String subject, String issuer, Time? not_before, Time? not_after, String serial_number) -> instance
|