Property | Type | Description | |
---|---|---|---|
GetSymmetricKey | string | ||
LifetimeValidator | bool |
Method | Description | |
---|---|---|
JwtTokenProvider ( IDataProtectionProvider dataProtection, IHttpContextAccessor contextAccessor ) : Microsoft.AspNetCore.DataProtection | ||
ValidateToken ( string securityKey, string jsonWebToken ) : ClaimsPrincipal | ||
WriteToken ( IEnumerable claims, string issuer, string audience, DateTime expires ) : string>.KeyValuePair |
Method | Description | |
---|---|---|
GetSymmetricKey ( ) : string | ||
LifetimeValidator ( DateTime? notBefore, DateTime? expires, SecurityToken tokenToValidate, TokenValidationParameters @param ) : bool |
public JwtTokenProvider ( IDataProtectionProvider dataProtection, IHttpContextAccessor contextAccessor ) : Microsoft.AspNetCore.DataProtection | ||
dataProtection | IDataProtectionProvider | |
contextAccessor | IHttpContextAccessor | |
return | Microsoft.AspNetCore.DataProtection |
public ValidateToken ( string securityKey, string jsonWebToken ) : ClaimsPrincipal | ||
securityKey | string | |
jsonWebToken | string | |
return | ClaimsPrincipal |
public WriteToken ( IEnumerable claims, string issuer, string audience, DateTime expires ) : string>.KeyValuePair |
||
claims | IEnumerable | |
issuer | string | |
audience | string | |
expires | DateTime | |
return | string>.KeyValuePair |