AggregateTokenResolver.TryResolveSecurityKeyCore Method (SecurityKeyIdentifierClause, SecurityKey)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Attempts to retrieve the key that is referenced in the specified key identifier clause.

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

protected override bool TryResolveSecurityKeyCore(
	SecurityKeyIdentifierClause keyIdentifierClause,
	out SecurityKey key
)

Parameters

keyIdentifierClause
Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause

The key identifier clause to retrieve the key for.

key
Type: System.IdentityModel.Tokens.SecurityKey

When this method returns, contains the key that is referenced in the specified key identifier clause. This parameter is passed uninitialized.

Return Value

Type: System.Boolean

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

Exception Condition
ArgumentNullException

keyIdentifierClause is null.

The TryResolveSecurityKeyCore method is called by the TryResolveSecurityKey and ResolveSecurityKey methods.

.NET Framework
Available since 4.5
Return to top
Show: