Udostępnij za pośrednictwem


Signature.Verify Method

Definition

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.

Applies to