Share via


SignatureProvider.Verify Method

Verifies that a signature created over the 'input' matches the signature.

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)

Syntax

'Declaration
Public MustOverride Function Verify ( _
    input As Byte(), _
    signature As Byte() _
) As Boolean
public abstract bool Verify(
    byte[] input,
    byte[] signature
)
public:
virtual bool Verify(
    array<unsigned char>^ input, 
    array<unsigned char>^ signature
) abstract
abstract Verify : 
        input:byte[] * 
        signature:byte[] -> bool
public abstract function Verify(
    input : byte[], 
    signature : byte[]
) : boolean

Parameters

  • signature
    Type: System.Byte[]

    signature to compare against.

Return Value

Type: System.Boolean
true if the computed signature matches the signature parameter, false otherwise.

.NET Framework Security

See Also

Reference

SignatureProvider Class

System.IdentityModel.Tokens Namespace