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.



3185
3186
3187
3188
3189
3190
# File 'lib/v20190118/models.rb', line 3185

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,表示消息原文。



3183
3184
3185
# File 'lib/v20190118/models.rb', line 3183

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,表示消息原文。



3183
3184
3185
# File 'lib/v20190118/models.rb', line 3183

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,表示消息原文。



3183
3184
3185
# File 'lib/v20190118/models.rb', line 3183

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,表示消息原文。



3183
3184
3185
# File 'lib/v20190118/models.rb', line 3183

def MessageType
  @MessageType
end

Instance Method Details

#deserialize(params) ⇒ Object



3192
3193
3194
3195
3196
3197
# File 'lib/v20190118/models.rb', line 3192

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