Class: Google::Apis::PrivatecaV1beta1::KeyUsage
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1beta1::KeyUsage
- 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
A KeyUsage describes key usage values that may appear in an X.509 certificate.
Instance Attribute Summary collapse
-
#base_key_usage ⇒ Google::Apis::PrivatecaV1beta1::KeyUsageOptions
KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
-
#extended_key_usage ⇒ Google::Apis::PrivatecaV1beta1::ExtendedKeyUsageOptions
KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value.
-
#unknown_extended_key_usages ⇒ Array<Google::Apis::PrivatecaV1beta1::ObjectIdProp>
Used to describe extended key usages that are not listed in the KeyUsage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KeyUsage
constructor
A new instance of KeyUsage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KeyUsage
Returns a new instance of KeyUsage.
2229 2230 2231 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2229 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_key_usage ⇒ Google::Apis::PrivatecaV1beta1::KeyUsageOptions
KeyUsage.KeyUsageOptions corresponds to the key usage values described in
https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
Corresponds to the JSON property baseKeyUsage
2215 2216 2217 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2215 def base_key_usage @base_key_usage end |
#extended_key_usage ⇒ Google::Apis::PrivatecaV1beta1::ExtendedKeyUsageOptions
KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common
OIDs that could be specified as an extended key usage value.
Corresponds to the JSON property extendedKeyUsage
2221 2222 2223 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2221 def extended_key_usage @extended_key_usage end |
#unknown_extended_key_usages ⇒ Array<Google::Apis::PrivatecaV1beta1::ObjectIdProp>
Used to describe extended key usages that are not listed in the KeyUsage.
ExtendedKeyUsageOptions message.
Corresponds to the JSON property unknownExtendedKeyUsages
2227 2228 2229 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2227 def unknown_extended_key_usages @unknown_extended_key_usages end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2234 2235 2236 2237 2238 |
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 2234 def update!(**args) @base_key_usage = args[:base_key_usage] if args.key?(:base_key_usage) @extended_key_usage = args[:extended_key_usage] if args.key?(:extended_key_usage) @unknown_extended_key_usages = args[:unknown_extended_key_usages] if args.key?(:unknown_extended_key_usages) end |