Class: TencentCloud::Kms::V20190118::SignByAsymmetricKeyRequest

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

Overview

SignByAsymmetricKey请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(algorithm = nil, message = nil, keyid = nil, messagetype = nil) ⇒ SignByAsymmetricKeyRequest

Returns a new instance of SignByAsymmetricKeyRequest.



2329
2330
2331
2332
2333
2334
# File 'lib/v20190118/models.rb', line 2329

def initialize(algorithm=nil, message=nil, keyid=nil, messagetype=nil)
  @Algorithm = algorithm
  @Message = message
  @KeyId = keyid
  @MessageType = messagetype
end

Instance Attribute Details

#AlgorithmObject

Parameters:

  • Algorithm:

    签名算法,支持的算法:SM2DSA,ECC_P256_R1,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。

  • Message:

    消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,消息摘要长度(Base64编码前的长度)必须等于32字节

  • KeyId:

    密钥的唯一标识

  • MessageType:

    消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。



2327
2328
2329
# File 'lib/v20190118/models.rb', line 2327

def Algorithm
  @Algorithm
end

#KeyIdObject

Parameters:

  • Algorithm:

    签名算法,支持的算法:SM2DSA,ECC_P256_R1,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。

  • Message:

    消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,消息摘要长度(Base64编码前的长度)必须等于32字节

  • KeyId:

    密钥的唯一标识

  • MessageType:

    消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。



2327
2328
2329
# File 'lib/v20190118/models.rb', line 2327

def KeyId
  @KeyId
end

#MessageObject

Parameters:

  • Algorithm:

    签名算法,支持的算法:SM2DSA,ECC_P256_R1,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。

  • Message:

    消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,消息摘要长度(Base64编码前的长度)必须等于32字节

  • KeyId:

    密钥的唯一标识

  • MessageType:

    消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。



2327
2328
2329
# File 'lib/v20190118/models.rb', line 2327

def Message
  @Message
end

#MessageTypeObject

Parameters:

  • Algorithm:

    签名算法,支持的算法:SM2DSA,ECC_P256_R1,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。

  • Message:

    消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,消息摘要长度(Base64编码前的长度)必须等于32字节

  • KeyId:

    密钥的唯一标识

  • MessageType:

    消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。



2327
2328
2329
# File 'lib/v20190118/models.rb', line 2327

def MessageType
  @MessageType
end

Instance Method Details

#deserialize(params) ⇒ Object



2336
2337
2338
2339
2340
2341
# File 'lib/v20190118/models.rb', line 2336

def deserialize(params)
  @Algorithm = params['Algorithm']
  @Message = params['Message']
  @KeyId = params['KeyId']
  @MessageType = params['MessageType']
end