語言

SamlSecurityTokenHandler.CreateStatements 方法

定義

從 SecurityTokenDescriptor 產生 SamlStatements 的枚舉。 僅產生 SamlAttributeStatements 與 SamlAuthenticationStatements。 覆寫此方法以自訂語句的建立。

通話順序(全部為虛擬):1. 創建SamlSubject 2.CreateAttributeStatements 3.CreateAuthenticationStatements 4.創建授權決策語句

protected virtual System.Collections.Generic.ICollection<Microsoft.IdentityModel.Tokens.Saml.SamlStatement> CreateStatements(Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor, Microsoft.IdentityModel.Tokens.Saml.AuthenticationInformation authenticationInformation);
abstract member CreateStatements : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor * Microsoft.IdentityModel.Tokens.Saml.AuthenticationInformation -> System.Collections.Generic.ICollection<Microsoft.IdentityModel.Tokens.Saml.SamlStatement>
override this.CreateStatements : Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor * Microsoft.IdentityModel.Tokens.Saml.AuthenticationInformation -> System.Collections.Generic.ICollection<Microsoft.IdentityModel.Tokens.Saml.SamlStatement>
Protected Overridable Function CreateStatements (tokenDescriptor As SecurityTokenDescriptor, authenticationInformation As AuthenticationInformation) As ICollection(Of SamlStatement)

參數

tokenDescriptor
SecurityTokenDescriptor

用來建立語句的 SecurityTokenDescriptor。

authenticationInformation
AuthenticationInformation

建立 SamlAuthenticationStatement. 的額外資訊。

傳回

SamlStatement 的列舉。

例外狀況

若 tokenDescriptor 為零。

適用於