SamlAuthenticationStatement 类

定义

表示安全令牌的 SamlSecurityToken 声明,该声明断言使用者在特定时间通过特定方式进行身份验证。

public ref class SamlAuthenticationStatement : System::IdentityModel::Tokens::SamlSubjectStatement
public class SamlAuthenticationStatement : System.IdentityModel.Tokens.SamlSubjectStatement
type SamlAuthenticationStatement = class
    inherit SamlSubjectStatement
Public Class SamlAuthenticationStatement
Inherits SamlSubjectStatement
继承
SamlAuthenticationStatement

注解

SamlSecurityToken 安全令牌使用 SAML 断言指定其声明,该断言可以指定主题进行身份验证的时间。 SAML 断言中的声明由 SAML 语句表示。 SAML 规范定义一组 SAML 语句类型,其中一种是 。SamlAuthenticationStatementSamlAuthenticationStatement 言该语句的主题在特定时间通过特定方式进行身份验证。

构造函数

名称 说明
SamlAuthenticationStatement()

初始化 SamlAuthenticationStatement 类的新实例。

SamlAuthenticationStatement(SamlSubject, String, DateTime, String, String, IEnumerable<SamlAuthorityBinding>)

使用指定的身份验证详细信息初始化类的新实例 SamlAuthenticationStatement

属性

名称 说明
AuthenticationInstant

获取或设置主题进行身份验证的即时时间。

AuthenticationMethod

获取或设置用于对主题进行身份验证的方法。

AuthorityBindings

获取有关主题的其他信息。

ClaimType

获取安全声明的类型。

DnsAddress

获取或设置对使用者进行身份验证的计算机所在的 DNS 域名。

IPAddress

获取或设置对主题进行身份验证的计算机的 IP 地址。

IsReadOnly

获取一个值,该值指示此实例的属性是否为只读。

SamlSubject

获取或设置安全令牌的主题 SamlSecurityToken

(继承自 SamlSubjectStatement)

方法

名称 说明
AddClaimsToList(IList<Claim>)

基于此实例的属性将声明添加到指定的声明集合中。

CreatePolicy(ClaimSet, SamlSecurityTokenAuthenticator)

SamlSecurityToken 安全令牌创建授权策略。

(继承自 SamlSubjectStatement)
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MakeReadOnly()

使此实例为只读。

MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver)

从指定的 XML 读取器读取 SAML 身份验证语句。

SetSubject(SamlSubject)

设置安全令牌的主题 SamlSecurityToken

(继承自 SamlSubjectStatement)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)
WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer)

将 SAML 身份验证语句写入指定的 XML 序列化程序。

适用于