Class: Google::Apis::PrivatecaV1::KeyUsageOptions

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KeyUsageOptions

Returns a new instance of KeyUsageOptions.



1443
1444
1445
# File 'lib/google/apis/privateca_v1/classes.rb', line 1443

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

Instance Attribute Details

#cert_signBoolean Also known as: cert_sign?

The key may be used to sign certificates. Corresponds to the JSON property certSign

Returns:

  • (Boolean)


1391
1392
1393
# File 'lib/google/apis/privateca_v1/classes.rb', line 1391

def cert_sign
  @cert_sign
end

#content_commitmentBoolean 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

Returns:

  • (Boolean)


1398
1399
1400
# File 'lib/google/apis/privateca_v1/classes.rb', line 1398

def content_commitment
  @content_commitment
end

#crl_signBoolean Also known as: crl_sign?

The key may be used sign certificate revocation lists. Corresponds to the JSON property crlSign

Returns:

  • (Boolean)


1404
1405
1406
# File 'lib/google/apis/privateca_v1/classes.rb', line 1404

def crl_sign
  @crl_sign
end

#data_enciphermentBoolean Also known as: data_encipherment?

The key may be used to encipher data. Corresponds to the JSON property dataEncipherment

Returns:

  • (Boolean)


1410
1411
1412
# File 'lib/google/apis/privateca_v1/classes.rb', line 1410

def data_encipherment
  @data_encipherment
end

#decipher_onlyBoolean Also known as: decipher_only?

The key may be used to decipher only. Corresponds to the JSON property decipherOnly

Returns:

  • (Boolean)


1416
1417
1418
# File 'lib/google/apis/privateca_v1/classes.rb', line 1416

def decipher_only
  @decipher_only
end

#digital_signatureBoolean Also known as: digital_signature?

The key may be used for digital signatures. Corresponds to the JSON property digitalSignature

Returns:

  • (Boolean)


1422
1423
1424
# File 'lib/google/apis/privateca_v1/classes.rb', line 1422

def digital_signature
  @digital_signature
end

#encipher_onlyBoolean Also known as: encipher_only?

The key may be used to encipher only. Corresponds to the JSON property encipherOnly

Returns:

  • (Boolean)


1428
1429
1430
# File 'lib/google/apis/privateca_v1/classes.rb', line 1428

def encipher_only
  @encipher_only
end

#key_agreementBoolean Also known as: key_agreement?

The key may be used in a key agreement protocol. Corresponds to the JSON property keyAgreement

Returns:

  • (Boolean)


1434
1435
1436
# File 'lib/google/apis/privateca_v1/classes.rb', line 1434

def key_agreement
  @key_agreement
end

#key_enciphermentBoolean Also known as: key_encipherment?

The key may be used to encipher other keys. Corresponds to the JSON property keyEncipherment

Returns:

  • (Boolean)


1440
1441
1442
# File 'lib/google/apis/privateca_v1/classes.rb', line 1440

def key_encipherment
  @key_encipherment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
# File 'lib/google/apis/privateca_v1/classes.rb', line 1448

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