Share via


TeamFoundationSigningService.Sign Method (TeamFoundationRequestContext, Guid, array<Byte , TimeSpan, SigningAlgorithm)

Sign the given message using the key set for the given identifier. The message will fail to validate after the given expiration timespan.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function Sign ( _
    requestContext As TeamFoundationRequestContext, _
    identifier As Guid, _
    message As Byte(), _
    expiration As TimeSpan, _
    algorithm As SigningAlgorithm _
) As String
public string Sign(
    TeamFoundationRequestContext requestContext,
    Guid identifier,
    byte[] message,
    TimeSpan expiration,
    SigningAlgorithm algorithm
)
public:
String^ Sign(
    TeamFoundationRequestContext^ requestContext, 
    Guid identifier, 
    array<unsigned char>^ message, 
    TimeSpan expiration, 
    SigningAlgorithm algorithm
)
member Sign : 
        requestContext:TeamFoundationRequestContext * 
        identifier:Guid * 
        message:byte[] * 
        expiration:TimeSpan * 
        algorithm:SigningAlgorithm -> string
public function Sign(
    requestContext : TeamFoundationRequestContext, 
    identifier : Guid, 
    message : byte[], 
    expiration : TimeSpan, 
    algorithm : SigningAlgorithm
) : String

Parameters

  • identifier
    Type: System.Guid

    The identifier of the key set

  • message
    Type: array<System.Byte[]

    The message to sign

  • expiration
    Type: System.TimeSpan

    The length of time for which the signed message can be validated. Pass TimeSpan.Zero for no expiration

Return Value

Type: System.String
Returns the signed message

.NET Framework Security

See Also

Reference

TeamFoundationSigningService Class

Sign Overload

Microsoft.TeamFoundation.Framework.Server Namespace