/// <summary>
        /// Constructs an instance of the SspiServerSecurityContext class.
        /// </summary>
        /// <param name="keyProvider_SspiServer">Parent KeyProvider_SspiServer factory.</param>
        public SspiServerSecurityContext(KeyProvider_SspiServer keyProvider_SspiServer)
        {
            this.KeyProvider_SspiServer = keyProvider_SspiServer;

            // get credentials handle
            SspiApi.AcquireCredentialsHandle(null,
                                             this.KeyProvider_SspiServer.PackageName, SspiApi.SECPKG_CRED_INBOUND,
                                             this._credHandle, ref this._ptsExpiry);
        }
        /// <summary>
        /// Constructs an instance of the SspiServerSecurityContext class.
        /// </summary>
        /// <param name="keyProvider_SspiServer">Parent KeyProvider_SspiServer factory.</param>
        public SspiServerSecurityContext(KeyProvider_SspiServer keyProvider_SspiServer)
        {
            this.KeyProvider_SspiServer = keyProvider_SspiServer;

            // get credentials handle
            SspiApi.AcquireCredentialsHandle(null,
                this.KeyProvider_SspiServer.PackageName, SspiApi.SECPKG_CRED_INBOUND,
                this._credHandle, ref this._ptsExpiry);
        }
示例#3
0
 /// <summary>
 /// Constructs an instance of the SecuritySession_SspiClient class.
 /// </summary>
 /// <param name="name">Name of the SecuritySession being created.</param>
 /// <param name="remote">The remote host.</param>
 /// <param name="keyProvider_SspiServer">Parent KeyProvider_SspiServer instance to get settings from.</param>
 public SecuritySession_SspiServer(string name, HostInformation remote, KeyProvider_SspiServer keyProvider_SspiServer)
     : base(name, remote)
 {
     this.KeyProvider_SspiServer = keyProvider_SspiServer;
 }
 /// <summary>
 /// Constructs an instance of the SecuritySession_SspiClient class.
 /// </summary>
 /// <param name="name">Name of the SecuritySession being created.</param>
 /// <param name="remote">The remote host.</param>
 /// <param name="keyProvider_SspiServer">Parent KeyProvider_SspiServer instance to get settings from.</param>
 public SecuritySession_SspiServer(string name, HostInformation remote, KeyProvider_SspiServer keyProvider_SspiServer)
     : base(name, remote)
 {
     this.KeyProvider_SspiServer = keyProvider_SspiServer;
 }