Class: Google::Apis::PrivatecaV1::KeyUsageOptions
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::KeyUsageOptions
- 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
KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
Instance Attribute Summary collapse
-
#cert_sign ⇒ Boolean
(also: #cert_sign?)
The key may be used to sign certificates.
-
#content_commitment ⇒ Boolean
(also: #content_commitment?)
The key may be used for cryptographic commitments.
-
#crl_sign ⇒ Boolean
(also: #crl_sign?)
The key may be used sign certificate revocation lists.
-
#data_encipherment ⇒ Boolean
(also: #data_encipherment?)
The key may be used to encipher data.
-
#decipher_only ⇒ Boolean
(also: #decipher_only?)
The key may be used to decipher only.
-
#digital_signature ⇒ Boolean
(also: #digital_signature?)
The key may be used for digital signatures.
-
#encipher_only ⇒ Boolean
(also: #encipher_only?)
The key may be used to encipher only.
-
#key_agreement ⇒ Boolean
(also: #key_agreement?)
The key may be used in a key agreement protocol.
-
#key_encipherment ⇒ Boolean
(also: #key_encipherment?)
The key may be used to encipher other keys.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KeyUsageOptions
constructor
A new instance of KeyUsageOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KeyUsageOptions
Returns a new instance of KeyUsageOptions.
1458 1459 1460 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1458 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cert_sign ⇒ Boolean Also known as: cert_sign?
The key may be used to sign certificates.
Corresponds to the JSON property certSign
1406 1407 1408 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1406 def cert_sign @cert_sign end |
#content_commitment ⇒ Boolean Also known as: content_commitment?
The key may be used for cryptographic commitments. Note that this may also be
referred to as "non-repudiation".
Corresponds to the JSON property contentCommitment
1413 1414 1415 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1413 def content_commitment @content_commitment end |
#crl_sign ⇒ Boolean Also known as: crl_sign?
The key may be used sign certificate revocation lists.
Corresponds to the JSON property crlSign
1419 1420 1421 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1419 def crl_sign @crl_sign end |
#data_encipherment ⇒ Boolean Also known as: data_encipherment?
The key may be used to encipher data.
Corresponds to the JSON property dataEncipherment
1425 1426 1427 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1425 def data_encipherment @data_encipherment end |
#decipher_only ⇒ Boolean Also known as: decipher_only?
The key may be used to decipher only.
Corresponds to the JSON property decipherOnly
1431 1432 1433 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1431 def decipher_only @decipher_only end |
#digital_signature ⇒ Boolean Also known as: digital_signature?
The key may be used for digital signatures.
Corresponds to the JSON property digitalSignature
1437 1438 1439 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1437 def digital_signature @digital_signature end |
#encipher_only ⇒ Boolean Also known as: encipher_only?
The key may be used to encipher only.
Corresponds to the JSON property encipherOnly
1443 1444 1445 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1443 def encipher_only @encipher_only end |
#key_agreement ⇒ Boolean Also known as: key_agreement?
The key may be used in a key agreement protocol.
Corresponds to the JSON property keyAgreement
1449 1450 1451 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1449 def key_agreement @key_agreement end |
#key_encipherment ⇒ Boolean Also known as: key_encipherment?
The key may be used to encipher other keys.
Corresponds to the JSON property keyEncipherment
1455 1456 1457 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1455 def key_encipherment @key_encipherment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 1463 def update!(**args) @cert_sign = args[:cert_sign] if args.key?(:cert_sign) @content_commitment = args[:content_commitment] if args.key?(:content_commitment) @crl_sign = args[:crl_sign] if args.key?(:crl_sign) @data_encipherment = args[:data_encipherment] if args.key?(:data_encipherment) @decipher_only = args[:decipher_only] if args.key?(:decipher_only) @digital_signature = args[:digital_signature] if args.key?(:digital_signature) @encipher_only = args[:encipher_only] if args.key?(:encipher_only) @key_agreement = args[:key_agreement] if args.key?(:key_agreement) @key_encipherment = args[:key_encipherment] if args.key?(:key_encipherment) end |