コード例 #1
0
        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);
        }
コード例 #2
0
 public SecurityContext(SecurityCredential credential, SspiContextFlags contextFlags)
     : base(IntPtr.Zero, true)
 {
     _handle                = new SspiHandle();
     _credential            = credential;
     _requestedContextFlags = contextFlags;
 }
コード例 #3
0
 public SecurityContext(SecurityCredential credential, SspiContextFlags contextFlags)
     : base(IntPtr.Zero, true)
 {
     _handle = new SspiHandle();
     _credential = credential;
     _requestedContextFlags = contextFlags;
 }
コード例 #4
0
 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;
 }