TeamFoundationSigningService.Validate Method (TeamFoundationRequestContext, Guid, array<Byte[], array<Byte , SigningAlgorithm)
Validate the given signed message. Returns true if the message successfully validated. The original message payload is also returned.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function Validate ( _
requestContext As TeamFoundationRequestContext, _
identifier As Guid, _
encodedMessageHash As Byte(), _
signature As Byte(), _
algorithm As SigningAlgorithm _
) As Boolean
public bool Validate(
TeamFoundationRequestContext requestContext,
Guid identifier,
byte[] encodedMessageHash,
byte[] signature,
SigningAlgorithm algorithm
)
public:
bool Validate(
TeamFoundationRequestContext^ requestContext,
Guid identifier,
array<unsigned char>^ encodedMessageHash,
array<unsigned char>^ signature,
SigningAlgorithm algorithm
)
member Validate :
requestContext:TeamFoundationRequestContext *
identifier:Guid *
encodedMessageHash:byte[] *
signature:byte[] *
algorithm:SigningAlgorithm -> bool
public function Validate(
requestContext : TeamFoundationRequestContext,
identifier : Guid,
encodedMessageHash : byte[],
signature : byte[],
algorithm : SigningAlgorithm
) : boolean
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context
identifier
Type: System.GuidThe identifier of the key set to use
- encodedMessageHash
Type: array<System.Byte[]
- signature
Type: array<System.Byte[]
algorithm
Type: Microsoft.TeamFoundation.Framework.Server.SigningAlgorithmThe SigningAlgorithm to use [Default: SHA1]
Return Value
Type: System.Boolean
True if the message successfully validates
.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.