Class: TencentCloud::Kms::V20190118::VerifyByAsymmetricKeyRequest

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

Overview

VerifyByAsymmetricKey请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of VerifyByAsymmetricKeyRequest.



2531
2532
2533
2534
2535
2536
2537
# File 'lib/v20190118/models.rb', line 2531

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

Instance Attribute Details

#AlgorithmObject

Parameters:

  • KeyId:

    密钥的唯一标识

  • SignatureValue:

    签名值,通过调用KMS签名接口生成

  • Message:

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

  • Algorithm:

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

  • MessageType:

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



2529
2530
2531
# File 'lib/v20190118/models.rb', line 2529

def Algorithm
  @Algorithm
end

#KeyIdObject

Parameters:

  • KeyId:

    密钥的唯一标识

  • SignatureValue:

    签名值,通过调用KMS签名接口生成

  • Message:

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

  • Algorithm:

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

  • MessageType:

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



2529
2530
2531
# File 'lib/v20190118/models.rb', line 2529

def KeyId
  @KeyId
end

#MessageObject

Parameters:

  • KeyId:

    密钥的唯一标识

  • SignatureValue:

    签名值,通过调用KMS签名接口生成

  • Message:

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

  • Algorithm:

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

  • MessageType:

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



2529
2530
2531
# File 'lib/v20190118/models.rb', line 2529

def Message
  @Message
end

#MessageTypeObject

Parameters:

  • KeyId:

    密钥的唯一标识

  • SignatureValue:

    签名值,通过调用KMS签名接口生成

  • Message:

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

  • Algorithm:

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

  • MessageType:

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



2529
2530
2531
# File 'lib/v20190118/models.rb', line 2529

def MessageType
  @MessageType
end

#SignatureValueObject

Parameters:

  • KeyId:

    密钥的唯一标识

  • SignatureValue:

    签名值,通过调用KMS签名接口生成

  • Message:

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

  • Algorithm:

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

  • MessageType:

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



2529
2530
2531
# File 'lib/v20190118/models.rb', line 2529

def SignatureValue
  @SignatureValue
end

Instance Method Details

#deserialize(params) ⇒ Object



2539
2540
2541
2542
2543
2544
2545
# File 'lib/v20190118/models.rb', line 2539

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