Verify 类
- 继承自: <stream.Writable>
Verify 类是用于验证签名的实用工具。
它可以通过以下两种方式之一使用:
- 作为可写流,其中写入的数据用于根据提供的签名进行验证,或者
- 使用
verify.update()和verify.verify()方法来验证签名。
crypto.createVerify() 方法用于创建 Verify 实例。
Verify 对象不能直接使用 new 关键字创建。
有关示例,请参见 Sign。
- Extends: <stream.Writable>
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
- Using the
verify.update()andverify.verify()methods to verify the signature.
The crypto.createVerify() method is used to create Verify instances.
Verify objects are not to be created directly using the new keyword.
See Sign for examples.