public SspiSecurityContext( Credential credential, string package, InitContextFlag clientFlags = DefaultRequiredFlags, AcceptContextFlag serverFlags = DefaultServerRequiredFlags ) { this.credential = credential; this.clientFlags = clientFlags; this.serverFlags = serverFlags; this.Package = package; }
internal static extern SecStatus InitializeSecurityContext_1( ref SECURITY_HANDLE phCredential, ref SECURITY_HANDLE phContext, string pszTargetName, InitContextFlag fContextReq, int Reserved1, int TargetDataRep, ref SecBufferDesc pInput, int Reserved2, ref SECURITY_HANDLE phNewContext, ref SecBufferDesc pOutput, out InitContextFlag pfContextAttr, ref IntPtr ptsExpiry );
public SspiSecurityContext( Credential credential, string package, long logonId = 0, InitContextFlag clientFlags = _defaultRequiredFlags) { if (!DesktopOsHelper.IsWindows()) { throw new PlatformNotSupportedException("Ticket Cache interface is not supported for this OS platform."); } _credential = credential; _clientFlags = clientFlags; Package = package; _logonId = logonId; }