Bug 28864 - [Binding] - SFCertitificatePanel
Summary: [Binding] - SFCertitificatePanel
Status: RESOLVED DUPLICATE of bug 28640
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 2.0.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-04-07 16:50 UTC by Chris Hamons
Modified: 2017-03-09 02:52 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 28640

Comment 1 Sumalatha 2015-05-27 17:57:55 UTC
Hi, any idea when this will be implemented in Xamrarin Mac?
Comment 2 Chris Hamons 2015-05-27 18:35:55 UTC
Given our current backlog, and the fact that more often requested binding requests are in queue ahead of this, it may take a significant amount of time. If all you need is one particular class, we might be able to get you a work around until then.

What APIs do you need in particular?
Comment 3 Sumalatha 2015-05-27 18:53:07 UTC
Hi Chris,
   I would need the following two Apis in SFCertificate Panel. Basically I have a X509Certificate with me and want to call the Modal or Sheet version of SFCertificate Panel to display the X509Certificate.

https://developer.apple.com/library/mac/documentation/Security/Reference/SecurityInterfaceFramework/Classes/SFCertificatePanel_Class/index.html#//apple_ref/occ/instm/SFCertificatePanel/


 Following are the Apis  I need for SFCertificatePanel.

-beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:certificates:showGroup:
-runModalForCertificates:showGroup:

This in turn would require all the binding under SFCertificateView class.

(https://developer.apple.com/library/mac/documentation/Security/Reference/SecurityInterfaceFramework/Classes/SFCertificateView_Class/index.html#//apple_ref/occ/cl/SFCertificateView)
Comment 4 Chris Hamons 2015-05-28 13:11:39 UTC
@Sumalatha - It will be some time before we can get this binding done. I don't want to make any promises on a timetable.

However, I spent a bit of time and got the beginning of a manual binding done:

https://gist.github.com/chamons/9265613b90e22152b70c

With the documentation here: http://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/binding_details/

And here:
https://developer.apple.com/library/mac/documentation/Security/Reference/SecurityInterfaceFramework/Classes/SFCertificatePanel_Class/index.html#//apple_ref/occ/instm/SFCertificatePanel/runModalForCertificates:showGroup:

You may be able to extend it to do what you need until a "real" binding happens.
Comment 5 Sumalatha 2015-06-02 14:06:37 UTC
@Chris  - Thanks a lot :-)  I was able to use this piece of code and display the X509Certificate2.
Comment 6 PHAM DUNG 2017-02-19 04:12:18 UTC
Sumalatha 

please give a example, my english is not good. and i don't find any example like it

thx
Comment 7 PHAM DUNG 2017-02-19 04:12:41 UTC
@Sumalatha
Comment 8 Sebastien Pouliot 2017-03-09 02:52:38 UTC

*** This bug has been marked as a duplicate of bug 28640 ***