Udostępnij za pośrednictwem


AppServiceTokenHandler.TryValidateToken Method

Definition

Important

This API is not CLS-compliant.

[System.CLSCompliant(false)]
public static bool TryValidateToken (System.IdentityModel.Tokens.TokenValidationParameters validationParameters, string tokenValue, string secretKey, out System.Security.Claims.ClaimsPrincipal claimsPrincipal);
[<System.CLSCompliant(false)>]
static member TryValidateToken : System.IdentityModel.Tokens.TokenValidationParameters * string * string * ClaimsPrincipal -> bool
Public Shared Function TryValidateToken (validationParameters As TokenValidationParameters, tokenValue As String, secretKey As String, ByRef claimsPrincipal As ClaimsPrincipal) As Boolean

Parameters

validationParameters
System.IdentityModel.Tokens.TokenValidationParameters
tokenValue
String
secretKey
String
claimsPrincipal
ClaimsPrincipal

Returns

Attributes

Applies to