Signature.Verify Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Verify(SecurityKey) |
Verifies the signature over the SignedInfo. |
Verify(SecurityKey, CryptoProviderFactory) |
Verifies the signature over the SignedInfo. |
Verify(SecurityKey)
Verifies the signature over the SignedInfo.
public void Verify (Microsoft.IdentityModel.Tokens.SecurityKey key);
member this.Verify : Microsoft.IdentityModel.Tokens.SecurityKey -> unit
Public Sub Verify (key As SecurityKey)
Parameters
- key
- SecurityKey
the SecurityKey to use for cryptographic operations.
Exceptions
if key
is null.
if signature does not validate.
Applies to
Verify(SecurityKey, CryptoProviderFactory)
Verifies the signature over the SignedInfo.
public void Verify (Microsoft.IdentityModel.Tokens.SecurityKey key, Microsoft.IdentityModel.Tokens.CryptoProviderFactory cryptoProviderFactory);
member this.Verify : Microsoft.IdentityModel.Tokens.SecurityKey * Microsoft.IdentityModel.Tokens.CryptoProviderFactory -> unit
Public Sub Verify (key As SecurityKey, cryptoProviderFactory As CryptoProviderFactory)
Parameters
- key
- SecurityKey
the SecurityKey to use for cryptographic operations.
- cryptoProviderFactory
- CryptoProviderFactory
the CryptoProviderFactory to obtain cryptographic operators.
Exceptions
if cryptoProviderFactory
is null.
if signature does not validate.