Exemplo n.º 1
0
        /// <summary>
        /// Export and delete the current security context.
        /// </summary>
        /// <returns>The exported security context.</returns>
        /// <remarks>The security context will not longer be usable afterwards.</remarks>
        public ExportedSecurityContext Export()
        {
            var context = SecurityContextUtils.ExportContext(_context, SecPkgContextExportFlags.DeleteOld, _creds.PackageName, true);

            Dispose();
            return(context);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Export the security context.
 /// </summary>
 /// <returns>The exported security context.</returns>
 public ExportedSecurityContext Export()
 {
     return(SecurityContextUtils.ExportContext(_context, SecPkgContextExportFlags.None, _creds.PackageName));
 }