X509CertificateStoreTokenResolver.TryResolveSecurityKeyCore 方法

定义

尝试解析指定的密钥标识符字句为一个安全密钥。

protected:
 override bool TryResolveSecurityKeyCore(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityKey ^ % key);
protected override bool TryResolveSecurityKeyCore (System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause, out System.IdentityModel.Tokens.SecurityKey key);
override this.TryResolveSecurityKeyCore : System.IdentityModel.Tokens.SecurityKeyIdentifierClause * SecurityKey -> bool
Protected Overrides Function TryResolveSecurityKeyCore (keyIdentifierClause As SecurityKeyIdentifierClause, ByRef key As SecurityKey) As Boolean

参数

keyIdentifierClause
SecurityKeyIdentifierClause

从密钥标识符子句解析安全密钥。

key
SecurityKey

当此方法返回时,包含从密钥标识符子句解析的安全密钥。 该参数未经初始化即被处理。

返回

如果已成功解析密钥标识符子句,则为 true;否则为 false

例外

keyIdentifierClausenull

适用于