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.



2283
2284
2285
2286
2287
2288
# File 'lib/v20190118/models.rb', line 2283

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。



2281
2282
2283
# File 'lib/v20190118/models.rb', line 2281

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。



2281
2282
2283
# File 'lib/v20190118/models.rb', line 2281

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。



2281
2282
2283
# File 'lib/v20190118/models.rb', line 2281

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。



2281
2282
2283
# File 'lib/v20190118/models.rb', line 2281

def ValidTo
  @ValidTo
end

Instance Method Details

#deserialize(params) ⇒ Object



2290
2291
2292
2293
2294
2295
# File 'lib/v20190118/models.rb', line 2290

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