public SecurityCredential(string packageName, SecurityCredentialUse credentialUse)
     : base(IntPtr.Zero, true)
 {
     _handle = new SspiHandle();
     PackageInfo = SecurityPackageInfo.Query(packageName);
     CredentialUse = credentialUse;
 }
 public SecurityContext(SecurityCredential credential, SspiContextFlags contextFlags)
     : base(IntPtr.Zero, true)
 {
     _handle = new SspiHandle();
     _credential = credential;
     _requestedContextFlags = contextFlags;
 }
 public SecurityContext(SecurityCredential credential, SspiContextFlags contextFlags)
     : base(IntPtr.Zero, true)
 {
     _handle                = new SspiHandle();
     _credential            = credential;
     _requestedContextFlags = contextFlags;
 }
示例#4
0
 public SecurityCredential(string packageName, SecurityCredentialUse credentialUse)
     : base(IntPtr.Zero, true)
 {
     _handle       = new SspiHandle();
     PackageInfo   = SecurityPackageInfo.Query(packageName);
     CredentialUse = credentialUse;
 }
 public static extern uint AcquireCredentialsHandle(
     string principal,
     string package,
     SecurityCredentialUse credentialUsage,
     IntPtr logonId,
     AuthIdentity identity,
     int keyCallback,
     IntPtr keyArgument,
     ref SspiHandle credentialHandle,
     out long timestamp);
示例#6
0
 internal static extern uint AcceptSecurityContext(
     ref SspiHandle credentialHandle,
     ref SspiHandle inContextHandle,
     ref SecurityBufferDescriptor inputBuffer,
     SspiContextFlags requestedAttribs,
     DataRepresentation dataRepresentation,
     ref SspiHandle outContext,
     ref SecurityBufferDescriptor outputBuffer,
     out SspiContextFlags outputAttribs,
     out long timestamp);
示例#7
0
 public static extern uint AcquireCredentialsHandle(
     string principal,
     string package,
     SecurityCredentialUse credentialUsage,
     IntPtr logonId,
     IntPtr identity,
     int keyCallback,
     IntPtr keyArgument,
     ref SspiHandle credentialHandle,
     out long timestamp);
示例#8
0
 public static extern uint InitializeSecurityContext(
     ref SspiHandle credentialHandle,
     ref SspiHandle inContextHandle,
     string targetName,
     SspiContextFlags flags,
     int reserved1,
     DataRepresentation dataRepresentation,
     ref SecurityBufferDescriptor inputBuffer,
     int reserved2,
     ref SspiHandle outContext,
     ref SecurityBufferDescriptor outputBuffer,
     out SspiContextFlags outAttributes,
     out long timestamp);
 public static extern int FreeCredentialsHandle(ref SspiHandle sspiHandle);
 public static extern uint EncryptMessage(ref SspiHandle context, EncryptQualityOfProtection quality, ref SecurityBufferDescriptor pMessage, uint sequenceNumber);
 internal static extern uint VerifySignature(ref SspiHandle contextHandle, ref SecurityBufferDescriptor bufferDescriptor, uint sequenceNumber, MakeSignatureQualityOfProtection qualityOfProtection);
 public static extern uint DecryptMessage(ref SspiHandle context, ref SecurityBufferDescriptor pMessage, uint sequenceNumber, out uint quality);
示例#13
0
 internal static extern uint VerifySignature(ref SspiHandle contextHandle, ref SecurityBufferDescriptor bufferDescriptor, uint sequenceNumber, MakeSignatureQualityOfProtection qualityOfProtection);
 internal static extern uint QueryCredentialsAttributes(ref SspiHandle credentialHandle, QueryCredentialsAttribute attributeName, out IntPtr buffer);
 public static extern uint QueryContextAttributes(ref SspiHandle inContextHandle, QueryContextAttributes attribute, out SecurityPackageContextSizes sizes);
示例#16
0
 public static extern uint QueryContextAttributes(ref SspiHandle inContextHandle, QueryContextAttributes attribute, out IntPtr names);
示例#17
0
 public static extern uint QueryContextAttributes(ref SspiHandle inContextHandle, QueryContextAttributes attribute, out SecurityPackageContextSizes sizes);
示例#18
0
 public static extern int FreeCredentialsHandle(ref SspiHandle sspiHandle);
示例#19
0
 public static extern uint EncryptMessage(ref SspiHandle context, EncryptQualityOfProtection quality, ref SecurityBufferDescriptor pMessage, uint sequenceNumber);
 public static extern uint InitializeSecurityContext(
     ref SspiHandle credentialHandle,
     ref SspiHandle inContextHandle,
     string targetName,
     SspiContextFlags flags,
     int reserved1,
     DataRepresentation dataRepresentation,
     ref SecurityBufferDescriptor inputBuffer,
     int reserved2,
     ref SspiHandle outContext,
     ref SecurityBufferDescriptor outputBuffer,
     out SspiContextFlags outAttributes,
     out long timestamp);
 internal static extern uint AcceptSecurityContext(
     ref SspiHandle credentialHandle,
     ref SspiHandle inContextHandle,
     ref SecurityBufferDescriptor inputBuffer,
     SspiContextFlags requestedAttribs,
     DataRepresentation dataRepresentation,
     ref SspiHandle outContext,
     ref SecurityBufferDescriptor outputBuffer,
     out SspiContextFlags outputAttribs,
     out long timestamp);
示例#22
0
 public static extern uint DeleteSecurityContext(ref SspiHandle context);
 public static extern uint QueryContextAttributes(ref SspiHandle inContextHandle, QueryContextAttributes attribute, out IntPtr names);
 public static extern uint DeleteSecurityContext(ref SspiHandle context);
示例#25
0
 internal static extern uint QueryCredentialsAttributes(ref SspiHandle credentialHandle, QueryCredentialsAttribute attributeName, out IntPtr buffer);
示例#26
0
 public static extern uint DecryptMessage(ref SspiHandle context, ref SecurityBufferDescriptor pMessage, uint sequenceNumber, out uint quality);