共用方式為


TokenDecryptionKeyResolver Delegate

Definition

Resolves the decryption key for the security token.

public delegate System.Collections.Generic.IEnumerable<Microsoft.IdentityModel.Tokens.SecurityKey> TokenDecryptionKeyResolver(string token, SecurityToken securityToken, string kid, TokenValidationParameters validationParameters);
type TokenDecryptionKeyResolver = delegate of string * SecurityToken * string * TokenValidationParameters -> seq<SecurityKey>
Public Delegate Function TokenDecryptionKeyResolver(token As String, securityToken As SecurityToken, kid As String, validationParameters As TokenValidationParameters) As IEnumerable(Of SecurityKey) 

Parameters

token
String

The string representation of the token to be decrypted.

securityToken
SecurityToken

The SecurityToken to be decrypted, which is null by default.

kid
String

The key identifier, which may be null.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Return Value

The SecurityKey used to decrypt the token.

Applies to