Freigeben über


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.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<TeamFoundationServiceDependency(GetType(TeamFoundationSqlNotificationService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationLockingService))> _
Public Class TeamFoundationSigningService _
    Implements ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))]
public class TeamFoundationSigningService : ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))]
public ref class TeamFoundationSigningService : ITeamFoundationService
[<TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))>]
type TeamFoundationSigningService =  
    class 
        interface ITeamFoundationService 
    end
public class TeamFoundationSigningService implements ITeamFoundationService

The TeamFoundationSigningService type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationSigningService

Top

Methods

  Name Description
Public method Decrypt Decrypt the passed in data, using the given key set
Public method Encrypt Encrypt the passed in data, using the given key set
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetPublicKey Gets the public key for the given identifier
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method QuerySigningInfo Get the signing information (e.g. public key) for the given identifier
Public method RegenerateKey(TeamFoundationRequestContext, Guid) Regenerate the key set for the given identifier
Public method RegenerateKey(TeamFoundationRequestContext, Guid, Int32) Regenerate the key set for the given identifier
Public method Sign(TeamFoundationRequestContext, Guid, array<Byte[], SigningAlgorithm) Sign the given message using the key set for the given identifier.
Public method Sign(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.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Validate(TeamFoundationRequestContext, Guid, array<Byte[], array<Byte[], SigningAlgorithm) Validate the given signed message. Returns true if the message successfully validated. The original message payload is also returned.
Public method Validate(TeamFoundationRequestContext, Guid, String, array<Byte[]%, SigningAlgorithm) Validate the given signed message. Returns true if the message successfully validated. The original message payload is also returned.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceEnd Service End
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceStart Service Start

Top

Thread Safety

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

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace