public static SecurityContext Initialize(SecurityCredential credential, SspiContextFlags contextFlags, string servicePrincipalName, byte[] input, out byte[] output) { var context = new SecurityContext(credential, contextFlags); context.Initialize(servicePrincipalName, input, out output); return(context); }
public SecurityContext(SecurityCredential credential, SspiContextFlags contextFlags) : base(IntPtr.Zero, true) { _handle = new SspiHandle(); _credential = credential; _requestedContextFlags = contextFlags; }
public static SecurityContext Initialize(SecurityCredential credential, SspiContextFlags contextFlags, string servicePrincipalName, byte[] input, out byte[] output) { var context = new SecurityContext(credential, contextFlags); context.Initialize(servicePrincipalName, input, out output); return context; }