/// <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) { LowLevelAPI41.RutokenPkcs11Library p11 = pkcs11Library as LowLevelAPI41.RutokenPkcs11Library; if (p11 == null) { throw new ArgumentException("Incorrect type of low level PKCS#11 wrapper"); } return(new RutokenSlot(factories, p11, slotId)); }
internal RutokenSession(Pkcs11InteropFactories factories, LowLevelAPI41.RutokenPkcs11Library pkcs11Library, ulong sessionId) : base(factories, pkcs11Library, sessionId) { }
internal RutokenSlot(Net.Pkcs11Interop.HighLevelAPI.Pkcs11InteropFactories factories , LowLevelAPI41.RutokenPkcs11Library pkcs11Library, ulong slotId) : base(factories, pkcs11Library, slotId) { }