SamlAuthenticationStatement 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SamlAuthenticationStatement 类的新实例。
重载
SamlAuthenticationStatement()
初始化 SamlAuthenticationStatement 类的新实例。
public:
SamlAuthenticationStatement();
public SamlAuthenticationStatement();
Public Sub New ()
适用于
SamlAuthenticationStatement(SamlSubject, String, DateTime, String, String, IEnumerable<SamlAuthorityBinding>)
使用指定的身份验证详细信息初始化类的新实例 SamlAuthenticationStatement 。
public:
SamlAuthenticationStatement(System::IdentityModel::Tokens::SamlSubject ^ samlSubject, System::String ^ authenticationMethod, DateTime authenticationInstant, System::String ^ dnsAddress, System::String ^ ipAddress, System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::SamlAuthorityBinding ^> ^ authorityBindings);
public SamlAuthenticationStatement(System.IdentityModel.Tokens.SamlSubject samlSubject, string authenticationMethod, DateTime authenticationInstant, string dnsAddress, string ipAddress, System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.SamlAuthorityBinding> authorityBindings);
new System.IdentityModel.Tokens.SamlAuthenticationStatement : System.IdentityModel.Tokens.SamlSubject * string * DateTime * string * string * seq<System.IdentityModel.Tokens.SamlAuthorityBinding> -> System.IdentityModel.Tokens.SamlAuthenticationStatement
Public Sub New (samlSubject As SamlSubject, authenticationMethod As String, authenticationInstant As DateTime, dnsAddress As String, ipAddress As String, authorityBindings As IEnumerable(Of SamlAuthorityBinding))
参数
- samlSubject
- SamlSubject
一个 SamlSubject 表示声明的主题。
- authenticationMethod
- String
一个 URI 引用,指定主题的身份验证方式。
- dnsAddress
- String
对使用者进行身份验证的计算机所在的 DNS 域名。
- ipAddress
- String
对主题进行身份验证的计算机的 IP 地址。
- authorityBindings
- IEnumerable<SamlAuthorityBinding>
包含 IEnumerable<T> 有关主题的其他信息的类型的类型 SamlAuthorityBinding 。
例外
authorityBindings 包含一个成员,即 null.
注解
身份验证方法集可扩展;但是,下表包含 SAML 规范中定义的身份验证方法集。
| 身份验证方法 | URI |
|---|---|
| 密码 | urn:oasis:names:tc:SAML:1.0:am:password |
| Kerberos | urn:ietf:rfc:1510 |
| 安全远程密码 (SRP) | urn:ietf:rfc:2945 |
| 硬件令牌 | URI:urn:oasis:names:tc:SAML:1.0:am:HardwareToken |
| 基于 SSL/TLS 证书的客户端身份验证 | urn:ietf:rfc:2246 |
| PGP 公钥 | urn:oasis:names:tc:SAML:1.0:am:PGP |
| SPKI 公钥 | urn:oasis:names:tc:SAML:1.0:am:SPKI |
| XKMS 公钥 | urn:oasis:names:tc:SAML:1.0:am:XKMS |
| XML 数字签名 | urn:ietf:rfc:3075 |
| 未指定 | urn:oasis:names:tc:SAML:1.0:am:unspecified |
authenticationMethod参数为null时,身份验证方法设置为 urn:oasis:names:tc:SAML:1.0:am:unspecified。