SamlSecurityTokenHandler.CreateStatements 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 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 為零。