SamlAuthenticationStatement 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SamlAuthenticationStatement 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| SamlAuthenticationStatement() |
初始化 SamlAuthenticationStatement 類別的新執行個體。 |
| SamlAuthenticationStatement(SamlSubject, String, DateTime, String, String, IEnumerable<SamlAuthorityBinding>) |
使用指定的認證細節初始化該類別的新實例 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
代表主張主體的A SamlSubject 。
- authenticationMethod
- String
一份URI的參考資料,說明該對象是如何被認證的。
- dnsAddress
- String
驗證主體的電腦所居住的 DNS 網域名稱。
- ipAddress
- String
驗證主體的電腦的IP位址。
- authorityBindings
- IEnumerable<SamlAuthorityBinding>
一個 IEnumerable<T> 包含主題額外資訊的類型 SamlAuthorityBinding 。
例外狀況
authorityBindings 包含一個成員 null為 。
備註
認證方法集合是可擴充的;然而,下表包含了 SAML 規範中定義的認證方法集合。
| 驗證方法 | URI |
|---|---|
| Password | 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:未指定 |
當 authenticationMethod 參數為 null時,認證方法設為 urn:oasis:names:tc:SAML:1.0:am:unspecified。