Class: TencentCloud::Kms::V20190118::DecryptRequest

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

Overview

Decrypt请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ciphertextblob = nil, encryptioncontext = nil, encryptionpublickey = nil, encryptionalgorithm = nil) ⇒ DecryptRequest

Returns a new instance of DecryptRequest.



457
458
459
460
461
462
# File 'lib/v20190118/models.rb', line 457

def initialize(ciphertextblob=nil, encryptioncontext=nil, encryptionpublickey=nil, encryptionalgorithm=nil)
  @CiphertextBlob = ciphertextblob
  @EncryptionContext = encryptioncontext
  @EncryptionPublicKey = encryptionpublickey
  @EncryptionAlgorithm = encryptionalgorithm
end

Instance Attribute Details

#CiphertextBlobObject

Parameters:

  • CiphertextBlob:

    待解密的密文数据

  • EncryptionContext:

    key/value对的json字符串,如果Encrypt指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024字符

  • EncryptionPublicKey:

    PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。

  • EncryptionAlgorithm:

    非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。



455
456
457
# File 'lib/v20190118/models.rb', line 455

def CiphertextBlob
  @CiphertextBlob
end

#EncryptionAlgorithmObject

Parameters:

  • CiphertextBlob:

    待解密的密文数据

  • EncryptionContext:

    key/value对的json字符串,如果Encrypt指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024字符

  • EncryptionPublicKey:

    PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。

  • EncryptionAlgorithm:

    非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。



455
456
457
# File 'lib/v20190118/models.rb', line 455

def EncryptionAlgorithm
  @EncryptionAlgorithm
end

#EncryptionContextObject

Parameters:

  • CiphertextBlob:

    待解密的密文数据

  • EncryptionContext:

    key/value对的json字符串,如果Encrypt指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024字符

  • EncryptionPublicKey:

    PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。

  • EncryptionAlgorithm:

    非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。



455
456
457
# File 'lib/v20190118/models.rb', line 455

def EncryptionContext
  @EncryptionContext
end

#EncryptionPublicKeyObject

Parameters:

  • CiphertextBlob:

    待解密的密文数据

  • EncryptionContext:

    key/value对的json字符串,如果Encrypt指定了该参数,则在调用Decrypt API时需要提供同样的参数,最大支持1024字符

  • EncryptionPublicKey:

    PEM 格式公钥字符串,支持 RSA2048 和 SM2 公钥,用于对返回数据中的 Plaintext 值进行加密。若为空,则不对 Plaintext 值加密。

  • EncryptionAlgorithm:

    非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。



455
456
457
# File 'lib/v20190118/models.rb', line 455

def EncryptionPublicKey
  @EncryptionPublicKey
end

Instance Method Details

#deserialize(params) ⇒ Object



464
465
466
467
468
469
# File 'lib/v20190118/models.rb', line 464

def deserialize(params)
  @CiphertextBlob = params['CiphertextBlob']
  @EncryptionContext = params['EncryptionContext']
  @EncryptionPublicKey = params['EncryptionPublicKey']
  @EncryptionAlgorithm = params['EncryptionAlgorithm']
end