TeamFoundationSigningService.Sign Method (TeamFoundationRequestContext, Guid, array<Byte , SigningAlgorithm)
Sign the given message using the key set for the given identifier.
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(), _
algorithm As SigningAlgorithm _
) As Byte()
public byte[] Sign(
TeamFoundationRequestContext requestContext,
Guid identifier,
byte[] message,
SigningAlgorithm algorithm
)
public:
array<unsigned char>^ Sign(
TeamFoundationRequestContext^ requestContext,
Guid identifier,
array<unsigned char>^ message,
SigningAlgorithm algorithm
)
member Sign :
requestContext:TeamFoundationRequestContext *
identifier:Guid *
message:byte[] *
algorithm:SigningAlgorithm -> byte[]
public function Sign(
requestContext : TeamFoundationRequestContext,
identifier : Guid,
message : byte[],
algorithm : SigningAlgorithm
) : byte[]
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context
identifier
Type: System.GuidThe identifier of the key set
message
Type: array<System.Byte[]The message to sign
algorithm
Type: Microsoft.TeamFoundation.Framework.Server.SigningAlgorithmThe SigningAlgorithm to use [Default: SHA1]
Return Value
Type: array<System.Byte[]
Returns the signed message
.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.