/// <summary>
        /// Creates slot with specified handle
        /// </summary>
        /// <param name="factories">Factories to be used by Developer and Pkcs11Interop library</param>
        /// <param name="pkcs11Library">Low level PKCS#11 wrapper</param>
        /// <param name="slotId">PKCS#11 handle of slot</param>
        public ISlot Create(Pkcs11InteropFactories factories, LowLevelPkcs11Library pkcs11Library, ulong slotId)
        {
            LowLevelAPI80.RutokenPkcs11Library p11 = pkcs11Library as LowLevelAPI80.RutokenPkcs11Library;
            if (p11 == null)
            {
                throw new ArgumentException("Incorrect type of low level PKCS#11 wrapper");
            }

            return(new RutokenSlot(factories, p11, slotId));
        }
Exemplo n.º 2
0
 internal RutokenSession(Pkcs11InteropFactories factories, LowLevelAPI80.RutokenPkcs11Library pkcs11Library, ulong sessionId)
     : base(factories, pkcs11Library, sessionId)
 {
 }
Exemplo n.º 3
0
 internal RutokenSlot(Net.Pkcs11Interop.HighLevelAPI.Pkcs11InteropFactories factories
                      , LowLevelAPI80.RutokenPkcs11Library pkcs11Library, ulong slotId)
     : base(factories, pkcs11Library, slotId)
 {
 }