Forum Xamarin.Mac


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

QueryAsRecord for Token or SmartCard

martin_scholzmartin_scholz Member ✭✭
edited August 2019 in Xamarin.Mac

Is it possible to search certificates stored on a token (YubiKey,...) or a Smart Card? Like described in the CryptoToken API you only have to add the TokenID to the query. Problem is that in the Xamarin iOS SDK for SecRecord you have a property TokenID but unfortunately not in the Xamarin.Mac SDK.



  • martin_scholzmartin_scholz Member ✭✭

    I temporary fixed this with creating my own class until it's officially in the SDK

    public class MySecRecord : SecRecord
            public MySecRecord(SecKind secKind) : base(secKind)
            public String TokenID

    Instead of public SecTokenID TokenID i make it a String.

Sign In or Register to comment.