Class: Google::Apis::PrivatecaV1::X509Parameters
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::X509Parameters
- 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
-
#additional_extensions ⇒ Array<Google::Apis::PrivatecaV1::X509Extension>
Optional.
-
#aia_ocsp_servers ⇒ Array<String>
Optional.
-
#ca_options ⇒ Google::Apis::PrivatecaV1::CaOptions
Describes the X.509 basic constraints extension, per RFC 5280 section 4.2.1.9 Corresponds to the JSON property
caOptions
. -
#key_usage ⇒ Google::Apis::PrivatecaV1::KeyUsage
A KeyUsage describes key usage values that may appear in an X.509 certificate.
-
#name_constraints ⇒ Google::Apis::PrivatecaV1::NameConstraints
Describes the X.509 name constraints extension, per https://tools.ietf.org/ html/rfc5280#section-4.2.1.10 Corresponds to the JSON property
nameConstraints
. -
#policy_ids ⇒ Array<Google::Apis::PrivatecaV1::ObjectIdProp>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ X509Parameters
constructor
A new instance of X509Parameters.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ X509Parameters
Returns a new instance of X509Parameters.
2879 2880 2881 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2879 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_extensions ⇒ Array<Google::Apis::PrivatecaV1::X509Extension>
Optional. Describes custom X.509 extensions.
Corresponds to the JSON property additionalExtensions
2847 2848 2849 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2847 def additional_extensions @additional_extensions end |
#aia_ocsp_servers ⇒ Array<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
2854 2855 2856 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2854 def aia_ocsp_servers @aia_ocsp_servers end |
#ca_options ⇒ Google::Apis::PrivatecaV1::CaOptions
Describes the X.509 basic constraints extension, per RFC 5280 section 4.2.1.9
Corresponds to the JSON property caOptions
2860 2861 2862 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2860 def @ca_options end |
#key_usage ⇒ Google::Apis::PrivatecaV1::KeyUsage
A KeyUsage describes key usage values that may appear in an X.509 certificate.
Corresponds to the JSON property keyUsage
2865 2866 2867 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2865 def key_usage @key_usage end |
#name_constraints ⇒ Google::Apis::PrivatecaV1::NameConstraints
Describes the X.509 name constraints extension, per https://tools.ietf.org/
html/rfc5280#section-4.2.1.10
Corresponds to the JSON property nameConstraints
2871 2872 2873 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2871 def name_constraints @name_constraints end |
#policy_ids ⇒ Array<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
2877 2878 2879 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2877 def policy_ids @policy_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2884 2885 2886 2887 2888 2889 2890 2891 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 2884 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) @name_constraints = args[:name_constraints] if args.key?(:name_constraints) @policy_ids = args[:policy_ids] if args.key?(:policy_ids) end |