大网数据广告活动
账户与安全

SSPI Context Semantics

· 52CE 我爱测

A security context is the set of security attributes and rules in effect during a communication session.

A security context is the set of security attributes and rules in effect during a communication session. This includes such information as the identities of the principal and information on the keys, ciphers, and algorithms being used. For Security Support Provider Interface (SSPI), a security context is an opaque structure that is created through an exchange involving the InitializeSecurityContext (General) function and the AcceptSecurityContext (General) function.

For more information about the context attributes, see Context Requirements.

The SSPI model supports three types of security contexts.

Type Description
<a href="connection-oriented-contexts.md">Connection</a> A connection-oriented <a href="/windows/desktop/SecGloss/c-gly">context</a> is the most common security context, and the simplest to use. The caller is responsible for the overall message format and for the location of the data in the message. The caller is also responsible for the location of the security-relevant fields within a message, such as the location of the signature data.
Datagram A datagram-oriented context has extra support for DCE-style datagram communication. It can also be used generically for a datagram-oriented transport application. Important: The Microsoft Kerberos package does not support datagram contexts in user-to-user mode.
<a href="stream-contexts.md">Stream</a> A stream-oriented context is responsible for the blocking and message formatting within the security package. The caller is not interested in formatting, but rather a raw stream of data.

Related topics

Context Requirements

Connection-Oriented Contexts

Datagram Contexts

Stream Contexts

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。