Export (0) Print
Expand All

TeamFoundationSigningService Class

A service that can sign and validate caller messages using keys held by the signing service but accessed by the caller through a surrogate identifier guid.

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationSigningService

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

[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))]
public class TeamFoundationSigningService : ITeamFoundationService

The TeamFoundationSigningService type exposes the following members.

  NameDescription
Public methodDecryptDecrypt the passed in data, using the given key set
Public methodEncryptEncrypt the passed in data, using the given key set
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetPublicKeyGets the public key for the given identifier
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodQuerySigningInfoGet the signing information (e.g. public key) for the given identifier
Public methodRegenerateKey(TeamFoundationRequestContext, Guid)Regenerate the key set for the given identifier
Public methodRegenerateKey(TeamFoundationRequestContext, Guid, Int32)Regenerate the key set for the given identifier
Public methodSign(TeamFoundationRequestContext, Guid, Byte[], SigningAlgorithm)Sign the given message using the key set for the given identifier.
Public methodSign(TeamFoundationRequestContext, Guid, 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.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodValidate(TeamFoundationRequestContext, Guid, Byte[], Byte[], SigningAlgorithm)Validate the given signed message. Returns true if the message successfully validated. The original message payload is also returned.
Public methodValidate(TeamFoundationRequestContext, Guid, String, Byte[], SigningAlgorithm)Validate the given signed message. Returns true if the message successfully validated. The original message payload is also returned.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft