WSSecurityTokenSerializer.CreateKeyIdentifierClauseFromTokenXml 方法

定义

从以 XML 表示的令牌创建密钥标识符子句。

public:
 virtual System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ CreateKeyIdentifierClauseFromTokenXml(System::Xml::XmlElement ^ element, System::ServiceModel::Security::Tokens::SecurityTokenReferenceStyle tokenReferenceStyle);
public virtual System.IdentityModel.Tokens.SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml (System.Xml.XmlElement element, System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle tokenReferenceStyle);
abstract member CreateKeyIdentifierClauseFromTokenXml : System.Xml.XmlElement * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle -> System.IdentityModel.Tokens.SecurityKeyIdentifierClause
override this.CreateKeyIdentifierClauseFromTokenXml : System.Xml.XmlElement * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle -> System.IdentityModel.Tokens.SecurityKeyIdentifierClause
Public Overridable Function CreateKeyIdentifierClauseFromTokenXml (element As XmlElement, tokenReferenceStyle As SecurityTokenReferenceStyle) As SecurityKeyIdentifierClause

参数

element
XmlElement

安全令牌。

返回

SecurityKeyIdentifierClause

创建的安全密钥标识符。

例外

反序列化密钥标识符子句时发生错误,或者无法读取密钥标识符子句。

适用于