Class: Google::Apis::PrivatecaV1::X509Parameters

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

An X509Parameters is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ X509Parameters

Returns a new instance of X509Parameters.



2676
2677
2678
# File 'lib/google/apis/privateca_v1/classes.rb', line 2676

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

Instance Attribute Details

#additional_extensionsArray<Google::Apis::PrivatecaV1::X509Extension>

Optional. Describes custom X.509 extensions. Corresponds to the JSON property additionalExtensions



2651
2652
2653
# File 'lib/google/apis/privateca_v1/classes.rb', line 2651

def additional_extensions
  @additional_extensions
end

#aia_ocsp_serversArray<String>

Optional. Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the "Authority Information Access" extension in the certificate. Corresponds to the JSON property aiaOcspServers

Returns:

  • (Array<String>)


2658
2659
2660
# File 'lib/google/apis/privateca_v1/classes.rb', line 2658

def aia_ocsp_servers
  @aia_ocsp_servers
end

#ca_optionsGoogle::Apis::PrivatecaV1::CaOptions

Describes values that are relevant in a CA certificate. Corresponds to the JSON property caOptions



2663
2664
2665
# File 'lib/google/apis/privateca_v1/classes.rb', line 2663

def ca_options
  @ca_options
end

#key_usageGoogle::Apis::PrivatecaV1::KeyUsage

A KeyUsage describes key usage values that may appear in an X.509 certificate. Corresponds to the JSON property keyUsage



2668
2669
2670
# File 'lib/google/apis/privateca_v1/classes.rb', line 2668

def key_usage
  @key_usage
end

#policy_idsArray<Google::Apis::PrivatecaV1::ObjectIdProp>

Optional. Describes the X.509 certificate policy object identifiers, per https: //tools.ietf.org/html/rfc5280#section-4.2.1.4. Corresponds to the JSON property policyIds



2674
2675
2676
# File 'lib/google/apis/privateca_v1/classes.rb', line 2674

def policy_ids
  @policy_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2681
2682
2683
2684
2685
2686
2687
# File 'lib/google/apis/privateca_v1/classes.rb', line 2681

def update!(**args)
  @additional_extensions = args[:additional_extensions] if args.key?(:additional_extensions)
  @aia_ocsp_servers = args[:aia_ocsp_servers] if args.key?(:aia_ocsp_servers)
  @ca_options = args[:ca_options] if args.key?(:ca_options)
  @key_usage = args[:key_usage] if args.key?(:key_usage)
  @policy_ids = args[:policy_ids] if args.key?(:policy_ids)
end