AsymmetricSignatureProvider.Verify Method
Verifies that a signature of input matches the signature.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Overrides Function Verify ( _
input As Byte(), _
signature As Byte() _
) As Boolean
public override bool Verify(
byte[] input,
byte[] signature
)
public:
virtual bool Verify(
array<unsigned char>^ input,
array<unsigned char>^ signature
) override
abstract Verify :
input:byte[] *
signature:byte[] -> bool
override Verify :
input:byte[] *
signature:byte[] -> bool
public override function Verify(
input : byte[],
signature : byte[]
) : boolean
Parameters
input
Type: System.Byte[]The bytes to generate the signature over.
signature
Type: System.Byte[]The value to verify against.
Return Value
Type: System.Boolean
true if signature matches, false otherwise.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException |
|
ArgumentException |
|
ObjectDisposedException | If Dispose has been called. |
InvalidOperationException |
|
.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.