Saml2AuthenticationContext 类
定义
表示在 [Saml2Core, 2.7.2.2] 中指定的 AuthnContext 元素。Represents the AuthnContext element specified in [Saml2Core, 2.7.2.2].
public ref class Saml2AuthenticationContext
public class Saml2AuthenticationContext
type Saml2AuthenticationContext = class
Public Class Saml2AuthenticationContext
- 继承
-
Saml2AuthenticationContext
注解
此基类不直接支持通过 AuthnContextDecl 元素) 在 XML 中表示 (的任何按值身份验证上下文声明。This base class does not directly support any by-value authentication context declarations (represented in XML by the AuthnContextDecl element). 若要支持按值声明,请扩展此类以支持数据模型并扩展 Saml2SecurityTokenHandler 类,并重写 ReadAuthenticationContext 和 WriteAuthenticationContext 方法以读取和写入按值声明。To support by-value declarations, extend this class to support the data model and extend the Saml2SecurityTokenHandler class, overriding the ReadAuthenticationContext and WriteAuthenticationContext methods to read and write the by-value declaration.
有关此类表示的元素的详细信息,请参阅 SAML v2.0 核心规范。For more information about the element that this class represents, see the SAML V2.0 Core specification.
构造函数
| Saml2AuthenticationContext() |
初始化 Saml2AuthenticationContext 类的新实例。Initializes a new instance of the Saml2AuthenticationContext class. |
| Saml2AuthenticationContext(Uri) |
用指定的种类引用初始化 Saml2AuthenticationContext 类的新实例。Initializes a new instance of the Saml2AuthenticationContext class with the specified class reference. |
| Saml2AuthenticationContext(Uri, Uri) |
使用指定的引用种类和声明引用对 Saml2AuthenticationContext 类的新实例进行初始化。Initializes a new instance of the Saml2AuthenticationContext class with the specified class reference and declaration reference. |
属性
| AuthenticatingAuthorities |
获取由主要身份验证程序调用的身份验证权限的零或更多唯一标识符( URI )的集合,身份验证程序不包括声明颁发者(其假定在明确没有被集合包含时调用)。Gets a collection of zero or more unique identifiers (URIs) of authentication authorities that were involved in the authentication of the principal (not including the assertion issuer, who is presumed to have been involved without being explicitly included in the collection). [Saml2Core, 2.7.2.2][Saml2Core, 2.7.2.2] |
| ClassReference |
获取或设置标识描述遵循的身份验证上下文声明的身份验证上下文类的 URI 引用。Gets or sets the URI reference that identifies an authentication context class that describes the authentication context declaration that follows. [Saml2Core, 2.7.2.2][Saml2Core, 2.7.2.2] |
| DeclarationReference |
获取或设置标识验证上下文声明的 URI 引用。Gets or sets a URI reference that identifies an authentication context declaration. [Saml2Core, 2.7.2.2][Saml2Core, 2.7.2.2] |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |