コード例 #1
0
 public SecurityCredential(string packageName, SecurityCredentialUse credentialUse)
     : base(IntPtr.Zero, true)
 {
     _handle = new SspiHandle();
     PackageInfo = SecurityPackageInfo.Query(packageName);
     CredentialUse = credentialUse;
 }
コード例 #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 SecurityCredential(string packageName, SecurityCredentialUse credentialUse)
     : base(IntPtr.Zero, true)
 {
     _handle       = new SspiHandle();
     PackageInfo   = SecurityPackageInfo.Query(packageName);
     CredentialUse = credentialUse;
 }
コード例 #5
0
 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);
コード例 #9
0
 public static extern int FreeCredentialsHandle(ref SspiHandle sspiHandle);
コード例 #10
0
 public static extern uint EncryptMessage(ref SspiHandle context, EncryptQualityOfProtection quality, ref SecurityBufferDescriptor pMessage, uint sequenceNumber);
コード例 #11
0
 internal static extern uint VerifySignature(ref SspiHandle contextHandle, ref SecurityBufferDescriptor bufferDescriptor, uint sequenceNumber, MakeSignatureQualityOfProtection qualityOfProtection);
コード例 #12
0
 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);
コード例 #14
0
 internal static extern uint QueryCredentialsAttributes(ref SspiHandle credentialHandle, QueryCredentialsAttribute attributeName, out IntPtr buffer);
コード例 #15
0
 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);
コード例 #20
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);
コード例 #21
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);
コード例 #22
0
 public static extern uint DeleteSecurityContext(ref SspiHandle context);
コード例 #23
0
 public static extern uint QueryContextAttributes(ref SspiHandle inContextHandle, QueryContextAttributes attribute, out IntPtr names);
コード例 #24
0
 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);