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

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Sign the given message using the key set for the given identifier.

The message will not 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 _
) As String
public string Sign(
    TeamFoundationRequestContext requestContext,
    Guid identifier,
    byte[] message,
    TimeSpan expiration
)
public:
String^ Sign(
    TeamFoundationRequestContext^ requestContext, 
    Guid identifier, 
    array<unsigned char>^ message, 
    TimeSpan expiration
)
member Sign : 
        requestContext:TeamFoundationRequestContext * 
        identifier:Guid * 
        message:byte[] * 
        expiration:TimeSpan -> string
public function Sign(
    requestContext : TeamFoundationRequestContext, 
    identifier : Guid, 
    message : byte[], 
    expiration : TimeSpan
) : 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