Class: AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageFlagsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pca_connector_ad/cfn_template.rb

Overview

The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_encipherment: nil, digital_signature: nil, key_agreement: nil, key_encipherment: nil, non_repudiation: nil) ⇒ KeyUsageFlagsProperty

Returns a new instance of KeyUsageFlagsProperty.

Parameters:

  • data_encipherment (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    DataEncipherment is asserted when the subject public key is used for directly enciphering raw user data without the use of an intermediate symmetric cipher.

  • digital_signature (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    The digitalSignature is asserted when the subject public key is used for verifying digital signatures.

  • key_agreement (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    KeyAgreement is asserted when the subject public key is used for key agreement.

  • key_encipherment (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    KeyEncipherment is asserted when the subject public key is used for enciphering private or secret keys, i.e., for key transport.

  • non_repudiation (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    NonRepudiation is asserted when the subject public key is used to verify digital signatures.



1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
# File 'pca_connector_ad/cfn_template.rb', line 1197

def initialize(data_encipherment: nil, digital_signature: nil, key_agreement: nil, key_encipherment: nil, non_repudiation: nil)
  @data_encipherment = data_encipherment
  Jsii::Type.check_type(@data_encipherment, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "dataEncipherment") unless @data_encipherment.nil?
  @digital_signature = digital_signature
  Jsii::Type.check_type(@digital_signature, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "digitalSignature") unless @digital_signature.nil?
  @key_agreement = key_agreement
  Jsii::Type.check_type(@key_agreement, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "keyAgreement") unless @key_agreement.nil?
  @key_encipherment = key_encipherment
  Jsii::Type.check_type(@key_encipherment, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "keyEncipherment") unless @key_encipherment.nil?
  @non_repudiation = non_repudiation
  Jsii::Type.check_type(@non_repudiation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "nonRepudiation") unless @non_repudiation.nil?
end

Instance Attribute Details

#data_enciphermentBoolean, ... (readonly)

DataEncipherment is asserted when the subject public key is used for directly enciphering raw user data without the use of an intermediate symmetric cipher.



1214
1215
1216
# File 'pca_connector_ad/cfn_template.rb', line 1214

def data_encipherment
  @data_encipherment
end

#digital_signatureBoolean, ... (readonly)

The digitalSignature is asserted when the subject public key is used for verifying digital signatures.



1219
1220
1221
# File 'pca_connector_ad/cfn_template.rb', line 1219

def digital_signature
  @digital_signature
end

#key_agreementBoolean, ... (readonly)

KeyAgreement is asserted when the subject public key is used for key agreement.



1224
1225
1226
# File 'pca_connector_ad/cfn_template.rb', line 1224

def key_agreement
  @key_agreement
end

#key_enciphermentBoolean, ... (readonly)

KeyEncipherment is asserted when the subject public key is used for enciphering private or secret keys, i.e., for key transport.



1229
1230
1231
# File 'pca_connector_ad/cfn_template.rb', line 1229

def key_encipherment
  @key_encipherment
end

#non_repudiationBoolean, ... (readonly)

NonRepudiation is asserted when the subject public key is used to verify digital signatures.



1234
1235
1236
# File 'pca_connector_ad/cfn_template.rb', line 1234

def non_repudiation
  @non_repudiation
end

Class Method Details

.jsii_propertiesObject



1236
1237
1238
1239
1240
1241
1242
1243
1244
# File 'pca_connector_ad/cfn_template.rb', line 1236

def self.jsii_properties
  {
    :data_encipherment => "dataEncipherment",
    :digital_signature => "digitalSignature",
    :key_agreement => "keyAgreement",
    :key_encipherment => "keyEncipherment",
    :non_repudiation => "nonRepudiation",
  }
end

Instance Method Details

#to_jsiiObject



1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
# File 'pca_connector_ad/cfn_template.rb', line 1246

def to_jsii
  result = {}
  result.merge!({
    "dataEncipherment" => @data_encipherment,
    "digitalSignature" => @digital_signature,
    "keyAgreement" => @key_agreement,
    "keyEncipherment" => @key_encipherment,
    "nonRepudiation" => @non_repudiation,
  })
  result.compact
end