Class: Google::Apis::PrivatecaV1beta1::SubjectDescription

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/privateca_v1beta1/classes.rb,
lib/google/apis/privateca_v1beta1/representations.rb,
lib/google/apis/privateca_v1beta1/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubjectDescription

Returns a new instance of SubjectDescription.



2352
2353
2354
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2352

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#common_nameString

The "common name" of the distinguished name. Corresponds to the JSON property commonName

Returns:

  • (String)


2316
2317
2318
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2316

def common_name
  @common_name
end

#hex_serial_numberString

The serial number encoded in lowercase hexadecimal. Corresponds to the JSON property hexSerialNumber

Returns:

  • (String)


2321
2322
2323
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2321

def hex_serial_number
  @hex_serial_number
end

#lifetimeString

For convenience, the actual lifetime of an issued certificate. Corresponds to ' not_after_time' - 'not_before_time'. Corresponds to the JSON property lifetime

Returns:

  • (String)


2327
2328
2329
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2327

def lifetime
  @lifetime
end

#not_after_timeString

The time at which the certificate expires. Corresponds to the JSON property notAfterTime

Returns:

  • (String)


2332
2333
2334
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2332

def not_after_time
  @not_after_time
end

#not_before_timeString

The time at which the certificate becomes valid. Corresponds to the JSON property notBeforeTime

Returns:

  • (String)


2337
2338
2339
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2337

def not_before_time
  @not_before_time
end

#subjectGoogle::Apis::PrivatecaV1beta1::Subject

Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate. Corresponds to the JSON property subject



2343
2344
2345
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2343

def subject
  @subject
end

#subject_alt_nameGoogle::Apis::PrivatecaV1beta1::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



2350
2351
2352
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2350

def subject_alt_name
  @subject_alt_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2357
2358
2359
2360
2361
2362
2363
2364
2365
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2357

def update!(**args)
  @common_name = args[:common_name] if args.key?(:common_name)
  @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