Redigera

Dela via


X509CertificateStoreTokenResolver.TryResolveTokenCore Method

Definition

Resolves the specified key identifier or key identifier clause to a security token.

Overloads

TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)

Resolves the specified key identifier to a security token.

TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)

Resolves the specified key identifier clause to a security token.

TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)

Resolves the specified key identifier to a security token.

protected:
 override bool TryResolveTokenCore(System::IdentityModel::Tokens::SecurityKeyIdentifier ^ keyIdentifier, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityToken ^ % token);
protected override bool TryResolveTokenCore (System.IdentityModel.Tokens.SecurityKeyIdentifier keyIdentifier, out System.IdentityModel.Tokens.SecurityToken token);
override this.TryResolveTokenCore : System.IdentityModel.Tokens.SecurityKeyIdentifier * SecurityToken -> bool
Protected Overrides Function TryResolveTokenCore (keyIdentifier As SecurityKeyIdentifier, ByRef token As SecurityToken) As Boolean

Parameters

keyIdentifier
SecurityKeyIdentifier

The key identifier to resolve.

token
SecurityToken

When this method returns, contains the security token that was resolved from the key identifier. This parameter is treated as uninitialized.

Returns

true if the key identifier is successfully resolved; otherwise, false.

Exceptions

keyIdentifier is null.

Applies to

TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)

Resolves the specified key identifier clause to a security token.

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

Parameters

keyIdentifierClause
SecurityKeyIdentifierClause

The key identifier clause to resolve.

token
SecurityToken

When this method returns, contains the security token that was resolved from the key identifier clause. This parameter is treated as uninitialized.

Returns

true if the key identifier clause is successfully resolved; otherwise, false.

Exceptions

keyIdentifierClause is null.

Applies to