Files
cefsharp/CefSharp/ISelectClientCertificateCallback.cs
T
Smaran Harihar fa41529853 Add IRequestHandler.OnSelectClientCertificate (#1878)
* wip create hooks for onSelectClientCertificate

* create interface and wrapper for callback

* get certificate from CefCertificateList, convert to X509Certificate2, add them to X509CertificateCollection and return this to ClientAdapter

* code review changes. Certificate selection in wrapper requires recreation of certificate in iteration

* added certificate dialog selection to WinFormsRequestHandler. Used VS untabify to remove all the tabs and replaced it with spaces

* missed updating a summary on ISelectClientCertificateCallback

* code review changes
2016-12-13 09:48:15 +10:00

26 lines
877 B
C#

// Copyright © 2010-2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Security.Cryptography.X509Certificates;
namespace CefSharp
{
/// <summary>
/// Callback interface used to select a client certificate for authentication.
/// </summary>
public interface ISelectClientCertificateCallback : IDisposable
{
/// <summary>
/// Callback interface used to select a client certificate for authentication.
/// </summary>
/// <param name="selectedCert">selected certificate</param>
void Select(X509Certificate2 selectedCert);
/// <summary>
/// Gets a value indicating whether the callback has been disposed of.
/// </summary>
bool IsDisposed { get; }
}
}