mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
fa41529853
* 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
26 lines
877 B
C#
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; }
|
|
}
|
|
}
|