Class: TencentCloud::Kms::V20190118::GetParametersForImportRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190118/models.rb

Overview

GetParametersForImport请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyid = nil, wrappingalgorithm = nil, wrappingkeyspec = nil) ⇒ GetParametersForImportRequest

Returns a new instance of GetParametersForImportRequest.



1450
1451
1452
1453
1454
# File 'lib/v20190118/models.rb', line 1450

def initialize(keyid=nil, wrappingalgorithm=nil, wrappingkeyspec=nil)
  @KeyId = keyid
  @WrappingAlgorithm = wrappingalgorithm
  @WrappingKeySpec = wrappingkeyspec
end

Instance Attribute Details

#KeyIdObject

Parameters:

  • KeyId:

    CMK的唯一标识,获取密钥参数的CMK必须是EXTERNAL类型,即在CreateKey时指定Type=2 类型的CMK。

  • WrappingAlgorithm:

    指定加密密钥材料的算法,目前支持RSAES_PKCS1_V1_5、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256

  • WrappingKeySpec:

    指定加密密钥材料的类型,目前只支持RSA_2048



1448
1449
1450
# File 'lib/v20190118/models.rb', line 1448

def KeyId
  @KeyId
end

#WrappingAlgorithmObject

Parameters:

  • KeyId:

    CMK的唯一标识,获取密钥参数的CMK必须是EXTERNAL类型,即在CreateKey时指定Type=2 类型的CMK。

  • WrappingAlgorithm:

    指定加密密钥材料的算法,目前支持RSAES_PKCS1_V1_5、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256

  • WrappingKeySpec:

    指定加密密钥材料的类型,目前只支持RSA_2048



1448
1449
1450
# File 'lib/v20190118/models.rb', line 1448

def WrappingAlgorithm
  @WrappingAlgorithm
end

#WrappingKeySpecObject

Parameters:

  • KeyId:

    CMK的唯一标识,获取密钥参数的CMK必须是EXTERNAL类型,即在CreateKey时指定Type=2 类型的CMK。

  • WrappingAlgorithm:

    指定加密密钥材料的算法,目前支持RSAES_PKCS1_V1_5、RSAES_OAEP_SHA_1、RSAES_OAEP_SHA_256

  • WrappingKeySpec:

    指定加密密钥材料的类型,目前只支持RSA_2048



1448
1449
1450
# File 'lib/v20190118/models.rb', line 1448

def WrappingKeySpec
  @WrappingKeySpec
end

Instance Method Details

#deserialize(params) ⇒ Object



1456
1457
1458
1459
1460
# File 'lib/v20190118/models.rb', line 1456

def deserialize(params)
  @KeyId = params['KeyId']
  @WrappingAlgorithm = params['WrappingAlgorithm']
  @WrappingKeySpec = params['WrappingKeySpec']
end