Condividi tramite


TeamFoundationSigningService.Encrypt Method

Encrypt the passed in data, using the given key set

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

Syntax

'Declaration
Public Function Encrypt ( _
    requestContext As TeamFoundationRequestContext, _
    identifier As Guid, _
    rawData As Byte(), _
    algorithm As SigningAlgorithm _
) As Byte()
public byte[] Encrypt(
    TeamFoundationRequestContext requestContext,
    Guid identifier,
    byte[] rawData,
    SigningAlgorithm algorithm
)
public:
array<unsigned char>^ Encrypt(
    TeamFoundationRequestContext^ requestContext, 
    Guid identifier, 
    array<unsigned char>^ rawData, 
    SigningAlgorithm algorithm
)
member Encrypt : 
        requestContext:TeamFoundationRequestContext * 
        identifier:Guid * 
        rawData:byte[] * 
        algorithm:SigningAlgorithm -> byte[] 
public function Encrypt(
    requestContext : TeamFoundationRequestContext, 
    identifier : Guid, 
    rawData : byte[], 
    algorithm : SigningAlgorithm
) : byte[]

Parameters

  • identifier
    Type: System.Guid

    The identifier of the keyset

  • rawData
    Type: array<System.Byte[]

    The data to encrypt

Return Value

Type: array<System.Byte[]
Encrypted data

.NET Framework Security

See Also

Reference

TeamFoundationSigningService Class

Microsoft.TeamFoundation.Framework.Server Namespace