Freigeben über


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

  • identifier
    Type: System.Guid

    The identifier of the key set to use

Return Value

Type: System.Boolean
True if the message successfully validates

.NET Framework Security

See Also

Reference

TeamFoundationSigningService Class

Validate Overload

Microsoft.TeamFoundation.Framework.Server Namespace