class Google::Apis::PrivatecaV1::KeyUsage

A KeyUsage describes key usage values that may appear in an X.509 certificate.

Attributes

base_key_usage[RW]

KeyUsage.KeyUsageOptions corresponds to the key usage values described in tools.ietf.org/html/rfc5280#section-4.2.1.3. Corresponds to the JSON property `baseKeyUsage` @return [Google::Apis::PrivatecaV1::KeyUsageOptions]

extended_key_usage[RW]

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` @return [Google::Apis::PrivatecaV1::ExtendedKeyUsageOptions]

unknown_extended_key_usages[RW]

Used to describe extended key usages that are not listed in the KeyUsage. ExtendedKeyUsageOptions message. Corresponds to the JSON property `unknownExtendedKeyUsages` @return [Array<Google::Apis::PrivatecaV1::ObjectIdProp>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/privateca_v1/classes.rb, line 1372
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/privateca_v1/classes.rb, line 1377
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