<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.22.0" />

Microsoft.IdentityModel.Tokens.ISecurityTokenValidator

public interface ISecurityTokenValidator
ISecurityTokenValidator
bool CanValidateToken { get; }

Returns true if a token can be validated.

int MaximumTokenSizeInBytes { get; set; }

Gets and sets the maximum size in bytes, that a will be processed.

bool CanReadToken(string securityToken)

Returns true if the token can be read, false otherwise.

ClaimsPrincipal ValidateToken(string securityToken, TokenValidationParameters validationParameters, out SecurityToken validatedToken)

Validates a token passed as a string using TokenValidationParameters