SamlSecurityTokenHandler.CreateAttributeStatement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 SamlAttributeStatements 並將其加入集合。 覆寫此方法以提供自訂實作。
預設行為是為 tokenDescriptor.Subjects 集合中的每個主體建立新的 SamlAttributeStatement。
protected virtual Microsoft.IdentityModel.Tokens.Saml.SamlAttributeStatement CreateAttributeStatement(Microsoft.IdentityModel.Tokens.Saml.SamlSubject subject, Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor tokenDescriptor);
abstract member CreateAttributeStatement : Microsoft.IdentityModel.Tokens.Saml.SamlSubject * Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml.SamlAttributeStatement
override this.CreateAttributeStatement : Microsoft.IdentityModel.Tokens.Saml.SamlSubject * Microsoft.IdentityModel.Tokens.SecurityTokenDescriptor -> Microsoft.IdentityModel.Tokens.Saml.SamlAttributeStatement
Protected Overridable Function CreateAttributeStatement (subject As SamlSubject, tokenDescriptor As SecurityTokenDescriptor) As SamlAttributeStatement
參數
- subject
- SamlSubject
SamlSubject 用於 SamlAttributeStatement 中所建立的
- tokenDescriptor
- SecurityTokenDescriptor
包含代幣發行中使用的所有其他資訊。
傳回
SamlAttributeStatement
例外狀況
若 tokenDescriptor 為零。