Class: TencentCloud::Kms::V20190118::ImportKeyMaterialRequest

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

Overview

ImportKeyMaterial请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encryptedkeymaterial = nil, importtoken = nil, keyid = nil, validto = nil) ⇒ ImportKeyMaterialRequest

Returns a new instance of ImportKeyMaterialRequest.



1654
1655
1656
1657
1658
1659
# File 'lib/v20190118/models.rb', line 1654

def initialize(encryptedkeymaterial=nil, importtoken=nil, keyid=nil, validto=nil)
  @EncryptedKeyMaterial = encryptedkeymaterial
  @ImportToken = importtoken
  @KeyId = keyid
  @ValidTo = validto
end

Instance Attribute Details

#EncryptedKeyMaterialObject

Parameters:

  • EncryptedKeyMaterial:

    使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。

  • ImportToken:

    通过调用GetParametersForImport获得的导入令牌。

  • KeyId:

    指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。

  • ValidTo:

    密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。



1652
1653
1654
# File 'lib/v20190118/models.rb', line 1652

def EncryptedKeyMaterial
  @EncryptedKeyMaterial
end

#ImportTokenObject

Parameters:

  • EncryptedKeyMaterial:

    使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。

  • ImportToken:

    通过调用GetParametersForImport获得的导入令牌。

  • KeyId:

    指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。

  • ValidTo:

    密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。



1652
1653
1654
# File 'lib/v20190118/models.rb', line 1652

def ImportToken
  @ImportToken
end

#KeyIdObject

Parameters:

  • EncryptedKeyMaterial:

    使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。

  • ImportToken:

    通过调用GetParametersForImport获得的导入令牌。

  • KeyId:

    指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。

  • ValidTo:

    密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。



1652
1653
1654
# File 'lib/v20190118/models.rb', line 1652

def KeyId
  @KeyId
end

#ValidToObject

Parameters:

  • EncryptedKeyMaterial:

    使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。

  • ImportToken:

    通过调用GetParametersForImport获得的导入令牌。

  • KeyId:

    指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。

  • ValidTo:

    密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。



1652
1653
1654
# File 'lib/v20190118/models.rb', line 1652

def ValidTo
  @ValidTo
end

Instance Method Details

#deserialize(params) ⇒ Object



1661
1662
1663
1664
1665
1666
# File 'lib/v20190118/models.rb', line 1661

def deserialize(params)
  @EncryptedKeyMaterial = params['EncryptedKeyMaterial']
  @ImportToken = params['ImportToken']
  @KeyId = params['KeyId']
  @ValidTo = params['ValidTo']
end