as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Represents a verification context. This class provides functionality to verify digital signatures, ensuring the authenticity and integrity of signed messages.

Extends

  • BaseCryptoClass

Constructors

new VerificationContext()

new VerificationContext(): VerificationContext

Returns

VerificationContext

Methods

verify()

verify(message: ArrayBuffer, signature: ArrayBuffer): Promise<boolean>
Verify that the provided signature is valid for the given message. The method handles the hashing of the message internally, so the caller should provide the full, unhashed message data.

Parameters

message
ArrayBuffer The original message that was signed.
signature
ArrayBuffer The digital signature to verify.

Throws

  • SecurityError If the verification operation fails.

Returns

Promise<boolean> Promise<boolean> A promise that resolves to true if the signature is valid, false otherwise.
最后修改于 2026年8月25日