Class: Google::Apis::PrivatecaV1::CaOptions

Inherits:
Object
  • Object
show all
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

Describes the X.509 basic constraints extension, per RFC 5280 section 4.2.1.9

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CaOptions

Returns a new instance of CaOptions.



317
318
319
# File 'lib/google/apis/privateca_v1/classes.rb', line 317

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

Instance Attribute Details

#is_caBoolean Also known as: is_ca?

Optional. Refers to the "CA" boolean field in the X.509 extension. When this value is missing, the basic constraints extension will be omitted from the certificate. Corresponds to the JSON property isCa

Returns:

  • (Boolean)


305
306
307
# File 'lib/google/apis/privateca_v1/classes.rb', line 305

def is_ca
  @is_ca
end

#max_issuer_path_lengthFixnum

Optional. Refers to the path length constraint field in the X.509 extension. For a CA certificate, this value describes the depth of subordinate CA certificates that are allowed. If this value is less than 0, the request will fail. If this value is missing, the max path length will be omitted from the certificate. Corresponds to the JSON property maxIssuerPathLength

Returns:

  • (Fixnum)


315
316
317
# File 'lib/google/apis/privateca_v1/classes.rb', line 315

def max_issuer_path_length
  @max_issuer_path_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



322
323
324
325
# File 'lib/google/apis/privateca_v1/classes.rb', line 322

def update!(**args)
  @is_ca = args[:is_ca] if args.key?(:is_ca)
  @max_issuer_path_length = args[:max_issuer_path_length] if args.key?(:max_issuer_path_length)
end