SamlAuthenticationStatement 构造函数

定义

初始化 SamlAuthenticationStatement 类的新实例。Initializes a new instance of the SamlAuthenticationStatement class.

重载

SamlAuthenticationStatement()

初始化 SamlAuthenticationStatement 类的新实例。Initializes a new instance of the SamlAuthenticationStatement class.

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

使用指定的身份验证详细信息初始化 SamlAuthenticationStatement 类的新实例。Initializes a new instance of the SamlAuthenticationStatement class using the specified authentication details.

SamlAuthenticationStatement()

初始化 SamlAuthenticationStatement 类的新实例。Initializes a new instance of the SamlAuthenticationStatement class.

public:
 SamlAuthenticationStatement();
public SamlAuthenticationStatement ();
Public Sub New ()

适用于

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

使用指定的身份验证详细信息初始化 SamlAuthenticationStatement 类的新实例。Initializes a new instance of the SamlAuthenticationStatement class using the specified authentication details.

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

一个表示声明主题的 SamlSubjectA SamlSubject that represents the subject of the claim.

authenticationMethod
String

一个 URI 引用,它指定如何对主题进行身份验证。A URI reference that specifies how the subject was authenticated.

authenticationInstant
DateTime

一个 DateTime,它指定对主题进行身份验证的时刻。A DateTime that specifies the instant in time at which the subject was authenticated.

dnsAddress
String

对主题进行身份验证的计算机所在的 DNS 域名。The DNS domain name in which the computer that authenticated the subject resides.

ipAddress
String

对主题进行身份验证的计算机的 IP 地址。The IP address of the computer that authenticated the subject.

authorityBindings
IEnumerable<SamlAuthorityBinding>

一个类型为 IEnumerable<T>SamlAuthorityBinding,它包含关于主题的附加信息。An IEnumerable<T> of type SamlAuthorityBinding that contains additional information about the subject.

例外

authorityBindings 包含一个为 null 的成员。authorityBindings contains a member that is null.

注解

身份验证方法集是可扩展的;但是,下表包含 SAML 规范中定义的身份验证方法集。The set of authentication methods is extensible; however the following table contains the set of authentication methods defined in the SAML specification.

身份验证方法Authentication method URIURI
密码Password urn:oasis:names:tc:SAML:1.0:am:passwordurn:oasis:names:tc:SAML:1.0:am:password
KerberosKerberos urn: ietf: rfc:1510urn:ietf:rfc:1510
安全远程密码 (SRP)Secure Remote Password (SRP) urn: ietf: rfc:2945urn:ietf:rfc:2945
硬件令牌Hardware Token URI:urn:oasis:names:tc:SAML:1.0:am:HardwareTokenURI:urn:oasis:names:tc:SAML:1.0:am:HardwareToken
基于 SSL/TLS 证书的客户端身份验证SSL/TLS Certificate Based Client Authentication urn: ietf: rfc:2246urn:ietf:rfc:2246
PGP 公钥PGP Public Key urn:oasis:names:tc:SAML:1.0:am:PGPurn:oasis:names:tc:SAML:1.0:am:PGP
SPKI 公钥SPKI Public Key urn:oasis:names:tc:SAML:1.0:am:SPKIurn:oasis:names:tc:SAML:1.0:am:SPKI
XKMS 公钥XKMS Public Key urn:oasis:names:tc:SAML:1.0:am:XKMSurn:oasis:names:tc:SAML:1.0:am:XKMS
XML 数字签名XML Digital Signature urn:ietf:rfc:3075urn:ietf:rfc:3075
未指定Unspecified urn:oasis:names:tc:SAML:1.0:am:unspecifiedurn:oasis:names:tc:SAML:1.0:am:unspecified

如果 authenticationMethod 参数为 null,则身份验证方法设置为 urn:oasis:names:tc:SAML:1.0:am:unspecifiedWhen the authenticationMethod parameter is null, the authentication method is set to urn:oasis:names:tc:SAML:1.0:am:unspecified.

适用于