Class: AWSCDK::PaymentCryptography::CfnKey::KeyModesOfUseProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
payment_cryptography/cfn_key.rb

Overview

The list of cryptographic operations that you can perform using the key.

The modes of use are defined in section A.5.3 of the TR-31 spec.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(decrypt: nil, derive_key: nil, encrypt: nil, generate: nil, no_restrictions: nil, sign: nil, unwrap: nil, verify: nil, wrap: nil) ⇒ KeyModesOfUseProperty

Returns a new instance of KeyModesOfUseProperty.

Parameters:

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

    Specifies whether an AWS Payment Cryptography key can be used to decrypt data.

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

    Specifies whether an AWS Payment Cryptography key can be used to derive new keys.

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

    Specifies whether an AWS Payment Cryptography key can be used to encrypt data.

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

    Specifies whether an AWS Payment Cryptography key can be used to generate and verify other card and PIN verification keys.

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

    Specifies whether an AWS Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage .

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

    Specifies whether an AWS Payment Cryptography key can be used for signing.

  • unwrap (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)
  • verify (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies whether an AWS Payment Cryptography key can be used to verify signatures.

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

    Specifies whether an AWS Payment Cryptography key can be used to wrap other keys.



719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
# File 'payment_cryptography/cfn_key.rb', line 719

def initialize(decrypt: nil, derive_key: nil, encrypt: nil, generate: nil, no_restrictions: nil, sign: nil, unwrap: nil, verify: nil, wrap: nil)
  @decrypt = decrypt
  Jsii::Type.check_type(@decrypt, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "decrypt") unless @decrypt.nil?
  @derive_key = derive_key
  Jsii::Type.check_type(@derive_key, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "deriveKey") unless @derive_key.nil?
  @encrypt = encrypt
  Jsii::Type.check_type(@encrypt, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "encrypt") unless @encrypt.nil?
  @generate = generate
  Jsii::Type.check_type(@generate, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "generate") unless @generate.nil?
  @no_restrictions = no_restrictions
  Jsii::Type.check_type(@no_restrictions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "noRestrictions") unless @no_restrictions.nil?
  @sign = sign
  Jsii::Type.check_type(@sign, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "sign") unless @sign.nil?
  @unwrap = unwrap
  Jsii::Type.check_type(@unwrap, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "unwrap") unless @unwrap.nil?
  @verify = verify
  Jsii::Type.check_type(@verify, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "verify") unless @verify.nil?
  @wrap = wrap
  Jsii::Type.check_type(@wrap, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "wrap") unless @wrap.nil?
end

Instance Attribute Details

#decryptBoolean, ... (readonly)

Note:

Default: - false

Specifies whether an AWS Payment Cryptography key can be used to decrypt data.



745
746
747
# File 'payment_cryptography/cfn_key.rb', line 745

def decrypt
  @decrypt
end

#derive_keyBoolean, ... (readonly)

Note:

Default: - false

Specifies whether an AWS Payment Cryptography key can be used to derive new keys.



751
752
753
# File 'payment_cryptography/cfn_key.rb', line 751

def derive_key
  @derive_key
end

#encryptBoolean, ... (readonly)

Note:

Default: - false

Specifies whether an AWS Payment Cryptography key can be used to encrypt data.



757
758
759
# File 'payment_cryptography/cfn_key.rb', line 757

def encrypt
  @encrypt
end

#generateBoolean, ... (readonly)

Note:

Default: - false

Specifies whether an AWS Payment Cryptography key can be used to generate and verify other card and PIN verification keys.



763
764
765
# File 'payment_cryptography/cfn_key.rb', line 763

def generate
  @generate
end

#no_restrictionsBoolean, ... (readonly)

Note:

Default: - false

Specifies whether an AWS Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage .



769
770
771
# File 'payment_cryptography/cfn_key.rb', line 769

def no_restrictions
  @no_restrictions
end

#signBoolean, ... (readonly)

Note:

Default: - false

Specifies whether an AWS Payment Cryptography key can be used for signing.



775
776
777
# File 'payment_cryptography/cfn_key.rb', line 775

def sign
  @sign
end

#unwrapBoolean, ... (readonly)

Note:

Default: - false



779
780
781
# File 'payment_cryptography/cfn_key.rb', line 779

def unwrap
  @unwrap
end

#verifyBoolean, ... (readonly)

Note:

Default: - false

Specifies whether an AWS Payment Cryptography key can be used to verify signatures.



785
786
787
# File 'payment_cryptography/cfn_key.rb', line 785

def verify
  @verify
end

#wrapBoolean, ... (readonly)

Note:

Default: - false

Specifies whether an AWS Payment Cryptography key can be used to wrap other keys.



791
792
793
# File 'payment_cryptography/cfn_key.rb', line 791

def wrap
  @wrap
end

Class Method Details

.jsii_propertiesObject



793
794
795
796
797
798
799
800
801
802
803
804
805
# File 'payment_cryptography/cfn_key.rb', line 793

def self.jsii_properties
  {
    :decrypt => "decrypt",
    :derive_key => "deriveKey",
    :encrypt => "encrypt",
    :generate => "generate",
    :no_restrictions => "noRestrictions",
    :sign => "sign",
    :unwrap => "unwrap",
    :verify => "verify",
    :wrap => "wrap",
  }
end

Instance Method Details

#to_jsiiObject



807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
# File 'payment_cryptography/cfn_key.rb', line 807

def to_jsii
  result = {}
  result.merge!({
    "decrypt" => @decrypt,
    "deriveKey" => @derive_key,
    "encrypt" => @encrypt,
    "generate" => @generate,
    "noRestrictions" => @no_restrictions,
    "sign" => @sign,
    "unwrap" => @unwrap,
    "verify" => @verify,
    "wrap" => @wrap,
  })
  result.compact
end