类:Verify
¥Class: Verify
-
¥Extends: <stream.Writable>
Verify 类是用于验证签名的实用工具。它可以通过以下两种方式之一使用:
¥The Verify class is a utility for verifying signatures. It can be used in one
of two ways:
-
作为可写的 流,其中写入的数据用于根据提供的签名进行验证,或者
¥As a writable stream where written data is used to validate against the supplied signature, or
-
使用
verify.update()和verify.verify()方法来验证签名。¥Using the
verify.update()andverify.verify()methods to verify the signature.
crypto.createVerify() 方法用于创建 Verify 实例。Verify 对象不能直接使用 new 关键字创建。
¥The crypto.createVerify() method is used to create Verify instances.
Verify objects are not to be created directly using the new keyword.
有关示例,请参见 Sign。
¥See Sign for examples.