Class: Google::Apis::PrivatecaV1::SubjectDescription
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::SubjectDescription
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/privateca_v1/classes.rb,
lib/google/apis/privateca_v1/representations.rb,
lib/google/apis/privateca_v1/representations.rb
Overview
These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime.
Instance Attribute Summary collapse
-
#hex_serial_number ⇒ String
The serial number encoded in lowercase hexadecimal.
-
#lifetime ⇒ String
For convenience, the actual lifetime of an issued certificate.
-
#not_after_time ⇒ String
The time after which the certificate is expired.
-
#not_before_time ⇒ String
The time at which the certificate becomes valid.
-
#subject ⇒ Google::Apis::PrivatecaV1::Subject
Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.
-
#subject_alt_name ⇒ Google::Apis::PrivatecaV1::SubjectAltNames
SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name).
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubjectDescription
constructor
A new instance of SubjectDescription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SubjectDescription
Returns a new instance of SubjectDescription.
2668 2669 2670 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2668 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hex_serial_number ⇒ String
The serial number encoded in lowercase hexadecimal.
Corresponds to the JSON property hexSerialNumber
2635 2636 2637 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2635 def hex_serial_number @hex_serial_number end |
#lifetime ⇒ String
For convenience, the actual lifetime of an issued certificate.
Corresponds to the JSON property lifetime
2640 2641 2642 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2640 def lifetime @lifetime end |
#not_after_time ⇒ String
The time after which the certificate is expired. Per RFC 5280, the validity
period for a certificate is the period of time from not_before_time through
not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1
second.
Corresponds to the JSON property notAfterTime
2648 2649 2650 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2648 def not_after_time @not_after_time end |
#not_before_time ⇒ String
The time at which the certificate becomes valid.
Corresponds to the JSON property notBeforeTime
2653 2654 2655 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2653 def not_before_time @not_before_time end |
#subject ⇒ Google::Apis::PrivatecaV1::Subject
Subject describes parts of a distinguished name that, in turn, describes the
subject of the certificate.
Corresponds to the JSON property subject
2659 2660 2661 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2659 def subject @subject end |
#subject_alt_name ⇒ Google::Apis::PrivatecaV1::SubjectAltNames
SubjectAltNames corresponds to a more modern way of listing what the asserted
identity is in a certificate (i.e., compared to the "common name" in the
distinguished name).
Corresponds to the JSON property subjectAltName
2666 2667 2668 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2666 def subject_alt_name @subject_alt_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2673 2674 2675 2676 2677 2678 2679 2680 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2673 def update!(**args) @hex_serial_number = args[:hex_serial_number] if args.key?(:hex_serial_number) @lifetime = args[:lifetime] if args.key?(:lifetime) @not_after_time = args[:not_after_time] if args.key?(:not_after_time) @not_before_time = args[:not_before_time] if args.key?(:not_before_time) @subject = args[:subject] if args.key?(:subject) @subject_alt_name = args[:subject_alt_name] if args.key?(:subject_alt_name) end |