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
input
Type: System.Byte[]bytes to verify.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.