Class: TencentCloud::Kms::V20190118::ReEncryptRequest

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

Overview

ReEncrypt请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ciphertextblob = nil, destinationkeyid = nil, sourceencryptioncontext = nil, destinationencryptioncontext = nil) ⇒ ReEncryptRequest

Returns a new instance of ReEncryptRequest.



2225
2226
2227
2228
2229
2230
# File 'lib/v20190118/models.rb', line 2225

def initialize(ciphertextblob=nil, destinationkeyid=nil, sourceencryptioncontext=nil, destinationencryptioncontext=nil)
  @CiphertextBlob = ciphertextblob
  @DestinationKeyId = destinationkeyid
  @SourceEncryptionContext = sourceencryptioncontext
  @DestinationEncryptionContext = destinationencryptioncontext
end

Instance Attribute Details

#CiphertextBlobObject

Parameters:

  • CiphertextBlob:

    需要重新加密的密文

  • DestinationKeyId:

    重新加密使用的CMK,如果为空,则使用密文原有的CMK重新加密(若密钥没有轮换则密文不会刷新)

  • SourceEncryptionContext:

    CiphertextBlob 密文加密时使用的key/value对的json字符串。如果加密时未使用,则为空

  • DestinationEncryptionContext:

    重新加密使用的key/value对的json字符串,如果使用该字段,则返回的新密文在解密时需要填入相同的字符串



2223
2224
2225
# File 'lib/v20190118/models.rb', line 2223

def CiphertextBlob
  @CiphertextBlob
end

#DestinationEncryptionContextObject

Parameters:

  • CiphertextBlob:

    需要重新加密的密文

  • DestinationKeyId:

    重新加密使用的CMK,如果为空,则使用密文原有的CMK重新加密(若密钥没有轮换则密文不会刷新)

  • SourceEncryptionContext:

    CiphertextBlob 密文加密时使用的key/value对的json字符串。如果加密时未使用,则为空

  • DestinationEncryptionContext:

    重新加密使用的key/value对的json字符串,如果使用该字段,则返回的新密文在解密时需要填入相同的字符串



2223
2224
2225
# File 'lib/v20190118/models.rb', line 2223

def DestinationEncryptionContext
  @DestinationEncryptionContext
end

#DestinationKeyIdObject

Parameters:

  • CiphertextBlob:

    需要重新加密的密文

  • DestinationKeyId:

    重新加密使用的CMK,如果为空,则使用密文原有的CMK重新加密(若密钥没有轮换则密文不会刷新)

  • SourceEncryptionContext:

    CiphertextBlob 密文加密时使用的key/value对的json字符串。如果加密时未使用,则为空

  • DestinationEncryptionContext:

    重新加密使用的key/value对的json字符串,如果使用该字段,则返回的新密文在解密时需要填入相同的字符串



2223
2224
2225
# File 'lib/v20190118/models.rb', line 2223

def DestinationKeyId
  @DestinationKeyId
end

#SourceEncryptionContextObject

Parameters:

  • CiphertextBlob:

    需要重新加密的密文

  • DestinationKeyId:

    重新加密使用的CMK,如果为空,则使用密文原有的CMK重新加密(若密钥没有轮换则密文不会刷新)

  • SourceEncryptionContext:

    CiphertextBlob 密文加密时使用的key/value对的json字符串。如果加密时未使用,则为空

  • DestinationEncryptionContext:

    重新加密使用的key/value对的json字符串,如果使用该字段,则返回的新密文在解密时需要填入相同的字符串



2223
2224
2225
# File 'lib/v20190118/models.rb', line 2223

def SourceEncryptionContext
  @SourceEncryptionContext
end

Instance Method Details

#deserialize(params) ⇒ Object



2232
2233
2234
2235
2236
2237
# File 'lib/v20190118/models.rb', line 2232

def deserialize(params)
  @CiphertextBlob = params['CiphertextBlob']
  @DestinationKeyId = params['DestinationKeyId']
  @SourceEncryptionContext = params['SourceEncryptionContext']
  @DestinationEncryptionContext = params['DestinationEncryptionContext']
end