Verify the certificate's signature using the nominated public key.
Namespace: Org.BouncyCastle.X509Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
| C# |
|---|
public virtual void Verify( AsymmetricKeyParameter key ) |
| Visual Basic |
|---|
Public Overridable Sub Verify ( _ key As AsymmetricKeyParameter _ ) |
| Visual C++ |
|---|
public: virtual void Verify( AsymmetricKeyParameter^ key ) |
Parameters
- key
- Type: Org.BouncyCastle.Crypto..::..AsymmetricKeyParameter
An appropriate public key parameter object, RsaPublicKeyParameters, DsaPublicKeyParameters or ECDsaPublicKeyParameters
Return Value
True if the signature is valid.
Exceptions
| Exception | Condition |
|---|---|
| System..::..Exception | If key submitted is not of the above nominated types. |