Share via


VssClientCertificateManager Class

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Services.Client.VssClientCertificateManager

Namespace:  Microsoft.VisualStudio.Services.Client
Assembly:  Microsoft.VisualStudio.Services.Client (in Microsoft.VisualStudio.Services.Client.dll)

Syntax

'Declaration
Public Class VssClientCertificateManager _
    Implements IVssClientCertificateManager
public class VssClientCertificateManager : IVssClientCertificateManager
public ref class VssClientCertificateManager : IVssClientCertificateManager
type VssClientCertificateManager =  
    class 
        interface IVssClientCertificateManager 
    end
public class VssClientCertificateManager implements IVssClientCertificateManager

The VssClientCertificateManager type exposes the following members.

Constructors

  Name Description
Public method VssClientCertificateManager Creates a new VssClientCertificateManager.

Top

Properties

  Name Description
Public property ClientCertificates The set of client certificates held by this VssClientCertificateManager.
Public propertyStatic member Instance Static instance of the VssClientCertificateManager.

Top

Methods

  Name Description
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 methodStatic member GetClientAuthCertificates Given a store location, returns the certificates in the store which: a. Are valid given the current date and time b. Can be used for client authentication
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Invalidate Invalidates the cached data in the VssClientCertificateManager. Should be called after receiving a 403 on an https request, to pick up new client certificates if necessary. An invalidation is guaranteed to cause only one refresh.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member ReadDisableClientCertificates Reads (from the registry) whether or not client certificates are disabled.
Public methodStatic member ReadEffectiveDisableClientCertificates Reads (from the registry) whether or not client certificates are disabled.
Public methodStatic member ReadEffectiveSpecifiedCertificateThumbprints Reads (from the registry) the unified set of thumbprints specified by the environment variable, .config setting, registry (HKCU), and registry (HKLM). This method will not return duplicate thumbprints.
Public methodStatic member ReadSpecifiedCertificateThumbprints Reads (from the registry) the specified certificate thumbprints. Returns an empty array if no thumbprints are found. This method does not filter out duplicates.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public methodStatic member WriteDisableClientCertificates Writes (to the registry) whether or not client certificates are disabled.
Public methodStatic member WriteSpecifiedCertificateThumbprints Writes (to the registry) the specified certificate thumbprints. This method will filter out duplicate thumbprints.

Top

Fields

  Name Description
Public fieldStatic member OID_EXTENDED_KEY_USAGE
Public fieldStatic member OID_EXTENDED_KEY_USAGE_ANY
Public fieldStatic member OID_PKIX_KP_CLIENT_AUTH

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.VisualStudio.Services.Client Namespace