HslCertificateVerifyCer 方法 |
使用给定的公钥,校验当前的证书是否合法的,如果公钥为 null,则直接校验证书本身是否合法。
Use the given public key to verify whether the current certificate is valid, and if the public key is null, directly verify whether the certificate itself is valid.
命名空间:
HslCommunication.Core.Security
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.2.0.0 (12.2.0.0)
语法 public static bool VerifyCer(
byte[] publicKey,
byte[] hslCertificate
)
Public Shared Function VerifyCer (
publicKey As Byte(),
hslCertificate As Byte()
) As Boolean
public:
static bool VerifyCer(
array<unsigned char>^ publicKey,
array<unsigned char>^ hslCertificate
)
static member VerifyCer :
publicKey : byte[] *
hslCertificate : byte[] -> bool
参数
- publicKey
- 类型:SystemByte
公钥信息,如果不为空,则校验公钥是否一致 - hslCertificate
- 类型:SystemByte
证书信息
返回值
类型:
Boolean是否合法
参见