SecurityTokenResolver.TryResolveTokenCore Method (SecurityKeyIdentifier, SecurityToken)


When overridden in a derived class, attempts to retrieve the security token that matches at least one of the key identifier clauses contained within the specified key identifier.

Namespace:   System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected abstract bool TryResolveTokenCore(
	SecurityKeyIdentifier keyIdentifier,
	out SecurityToken token


Type: System.IdentityModel.Tokens.SecurityKeyIdentifier

The SecurityKeyIdentifier to create a security token for.

Type: System.IdentityModel.Tokens.SecurityToken

When this method returns, contains a SecurityToken that represents the specified key identifier. This parameter is passed uninitialized.

Return Value

Type: System.Boolean

true when a security token can be retrieved for the specified key identifier; otherwise, false.

The TryResolveTokenCore method is called by the TryResolveToken and ResolveToken methods.

.NET Framework
Available since 3.0
Return to top