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.



3037
3038
3039
3040
3041
3042
# File 'lib/v20190118/models.rb', line 3037

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字符串,如果使用该字段,则返回的新密文在解密时需要填入相同的字符串



3035
3036
3037
# File 'lib/v20190118/models.rb', line 3035

def CiphertextBlob
  @CiphertextBlob
end

#DestinationEncryptionContextObject

Parameters:

  • CiphertextBlob:

    需要重新加密的密文

  • DestinationKeyId:

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

  • SourceEncryptionContext:

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

  • DestinationEncryptionContext:

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



3035
3036
3037
# File 'lib/v20190118/models.rb', line 3035

def DestinationEncryptionContext
  @DestinationEncryptionContext
end

#DestinationKeyIdObject

Parameters:

  • CiphertextBlob:

    需要重新加密的密文

  • DestinationKeyId:

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

  • SourceEncryptionContext:

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

  • DestinationEncryptionContext:

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



3035
3036
3037
# File 'lib/v20190118/models.rb', line 3035

def DestinationKeyId
  @DestinationKeyId
end

#SourceEncryptionContextObject

Parameters:

  • CiphertextBlob:

    需要重新加密的密文

  • DestinationKeyId:

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

  • SourceEncryptionContext:

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

  • DestinationEncryptionContext:

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



3035
3036
3037
# File 'lib/v20190118/models.rb', line 3035

def SourceEncryptionContext
  @SourceEncryptionContext
end

Instance Method Details

#deserialize(params) ⇒ Object



3044
3045
3046
3047
3048
3049
# File 'lib/v20190118/models.rb', line 3044

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