다음을 통해 공유


JsonWebTokenHandler.ResolveTokenDecryptionKey Method

Definition

Returns a SecurityKey to use when decrypting a JWE.

protected virtual Microsoft.IdentityModel.Tokens.SecurityKey ResolveTokenDecryptionKey (string token, Microsoft.IdentityModel.JsonWebTokens.JsonWebToken jwtToken, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
abstract member ResolveTokenDecryptionKey : string * Microsoft.IdentityModel.JsonWebTokens.JsonWebToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> Microsoft.IdentityModel.Tokens.SecurityKey
override this.ResolveTokenDecryptionKey : string * Microsoft.IdentityModel.JsonWebTokens.JsonWebToken * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> Microsoft.IdentityModel.Tokens.SecurityKey
Protected Overridable Function ResolveTokenDecryptionKey (token As String, jwtToken As JsonWebToken, validationParameters As TokenValidationParameters) As SecurityKey

Parameters

token
String

The String the token that is being decrypted.

jwtToken
JsonWebToken

The JsonWebToken that is being decrypted.

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Returns

A SecurityKey to use for signature validation.

Remarks

If key fails to resolve, then null is returned.

Applies to