Class: AWSCDK::ACMPCA::CfnCertificate::KeyUsageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ACMPCA::CfnCertificate::KeyUsageProperty
- Defined in:
- acmpca/cfn_certificate.rb
Overview
Defines one or more purposes for which the key contained in the certificate can be used.
Default value for each option is false.
Instance Attribute Summary collapse
-
#crl_sign ⇒ Boolean, ...
readonly
Key can be used to sign CRLs.
-
#data_encipherment ⇒ Boolean, ...
readonly
Key can be used to decipher data.
-
#decipher_only ⇒ Boolean, ...
readonly
Key can be used only to decipher data.
-
#digital_signature ⇒ Boolean, ...
readonly
Key can be used for digital signing.
-
#encipher_only ⇒ Boolean, ...
readonly
Key can be used only to encipher data.
-
#key_agreement ⇒ Boolean, ...
readonly
Key can be used in a key-agreement protocol.
-
#key_cert_sign ⇒ Boolean, ...
readonly
Key can be used to sign certificates.
-
#key_encipherment ⇒ Boolean, ...
readonly
Key can be used to encipher data.
-
#non_repudiation ⇒ Boolean, ...
readonly
Key can be used for non-repudiation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(crl_sign: nil, data_encipherment: nil, decipher_only: nil, digital_signature: nil, encipher_only: nil, key_agreement: nil, key_cert_sign: nil, key_encipherment: nil, non_repudiation: nil) ⇒ KeyUsageProperty
constructor
A new instance of KeyUsageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(crl_sign: nil, data_encipherment: nil, decipher_only: nil, digital_signature: nil, encipher_only: nil, key_agreement: nil, key_cert_sign: nil, key_encipherment: nil, non_repudiation: nil) ⇒ KeyUsageProperty
Returns a new instance of KeyUsageProperty.
1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'acmpca/cfn_certificate.rb', line 1025 def initialize(crl_sign: nil, data_encipherment: nil, decipher_only: nil, digital_signature: nil, encipher_only: nil, key_agreement: nil, key_cert_sign: nil, key_encipherment: nil, non_repudiation: nil) @crl_sign = crl_sign Jsii::Type.check_type(@crl_sign, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "crlSign") unless @crl_sign.nil? @data_encipherment = data_encipherment Jsii::Type.check_type(@data_encipherment, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "dataEncipherment") unless @data_encipherment.nil? @decipher_only = decipher_only Jsii::Type.check_type(@decipher_only, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "decipherOnly") unless @decipher_only.nil? @digital_signature = digital_signature Jsii::Type.check_type(@digital_signature, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "digitalSignature") unless @digital_signature.nil? @encipher_only = encipher_only Jsii::Type.check_type(@encipher_only, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "encipherOnly") unless @encipher_only.nil? @key_agreement = key_agreement Jsii::Type.check_type(@key_agreement, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "keyAgreement") unless @key_agreement.nil? @key_cert_sign = key_cert_sign Jsii::Type.check_type(@key_cert_sign, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "keyCertSign") unless @key_cert_sign.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
#crl_sign ⇒ Boolean, ... (readonly)
Default: - false
Key can be used to sign CRLs.
1051 1052 1053 |
# File 'acmpca/cfn_certificate.rb', line 1051 def crl_sign @crl_sign end |
#data_encipherment ⇒ Boolean, ... (readonly)
Default: - false
Key can be used to decipher data.
1057 1058 1059 |
# File 'acmpca/cfn_certificate.rb', line 1057 def data_encipherment @data_encipherment end |
#decipher_only ⇒ Boolean, ... (readonly)
Default: - false
Key can be used only to decipher data.
1063 1064 1065 |
# File 'acmpca/cfn_certificate.rb', line 1063 def decipher_only @decipher_only end |
#digital_signature ⇒ Boolean, ... (readonly)
Default: - false
Key can be used for digital signing.
1069 1070 1071 |
# File 'acmpca/cfn_certificate.rb', line 1069 def digital_signature @digital_signature end |
#encipher_only ⇒ Boolean, ... (readonly)
Default: - false
Key can be used only to encipher data.
1075 1076 1077 |
# File 'acmpca/cfn_certificate.rb', line 1075 def encipher_only @encipher_only end |
#key_agreement ⇒ Boolean, ... (readonly)
Default: - false
Key can be used in a key-agreement protocol.
1081 1082 1083 |
# File 'acmpca/cfn_certificate.rb', line 1081 def key_agreement @key_agreement end |
#key_cert_sign ⇒ Boolean, ... (readonly)
Default: - false
Key can be used to sign certificates.
1087 1088 1089 |
# File 'acmpca/cfn_certificate.rb', line 1087 def key_cert_sign @key_cert_sign end |
#key_encipherment ⇒ Boolean, ... (readonly)
Default: - false
Key can be used to encipher data.
1093 1094 1095 |
# File 'acmpca/cfn_certificate.rb', line 1093 def key_encipherment @key_encipherment end |
#non_repudiation ⇒ Boolean, ... (readonly)
Default: - false
Key can be used for non-repudiation.
1099 1100 1101 |
# File 'acmpca/cfn_certificate.rb', line 1099 def non_repudiation @non_repudiation end |
Class Method Details
.jsii_properties ⇒ Object
1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 |
# File 'acmpca/cfn_certificate.rb', line 1101 def self.jsii_properties { :crl_sign => "crlSign", :data_encipherment => "dataEncipherment", :decipher_only => "decipherOnly", :digital_signature => "digitalSignature", :encipher_only => "encipherOnly", :key_agreement => "keyAgreement", :key_cert_sign => "keyCertSign", :key_encipherment => "keyEncipherment", :non_repudiation => "nonRepudiation", } end |
Instance Method Details
#to_jsii ⇒ Object
1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 |
# File 'acmpca/cfn_certificate.rb', line 1115 def to_jsii result = {} result.merge!({ "crlSign" => @crl_sign, "dataEncipherment" => @data_encipherment, "decipherOnly" => @decipher_only, "digitalSignature" => @digital_signature, "encipherOnly" => @encipher_only, "keyAgreement" => @key_agreement, "keyCertSign" => @key_cert_sign, "keyEncipherment" => @key_encipherment, "nonRepudiation" => @non_repudiation, }) result.compact end |