示例#1
0
 public override Dictionary <string, object> jose_jwt(BenchmarkToken token)
 {
     try
     {
         return(JoseDotNetCore(token.InvalidTokenString, Jose.JwsAlgorithm.HS256, SigningKey));
     }
     catch (Exception)
     {
         return(null !);
     }
 }
示例#2
0
 public override IDictionary <string, object> Jwt_Net(BenchmarkToken token)
 {
     try
     {
         return(JwtDotNetCore(token.InvalidTokenString, SigningKey, true));
     }
     catch (Exception)
     {
         return(null !);
     }
 }
示例#3
0
 public override ClaimsPrincipal Wilson(BenchmarkToken token)
 {
     try
     {
         return(WilsonCore(token.InvalidTokenString, wilsonParameters));
     }
     catch (SecurityTokenEncryptionKeyNotFoundException) { return(null !); }
     catch (SecurityTokenDecryptionFailedException) { return(null !); }
     catch (SecurityTokenExpiredException) { return(null !); }
     catch (SecurityTokenInvalidAudienceException) { return(null !); }
     catch (SecurityTokenInvalidLifetimeException) { return(null !); }
     catch (SecurityTokenInvalidSignatureException) { return(null !); }
     catch (SecurityTokenNoExpirationException) { return(null !); }
     catch (SecurityTokenNotYetValidException) { return(null !); }
     catch (SecurityTokenReplayAddFailedException) { return(null !); }
     catch (SecurityTokenReplayDetectedException) { return(null !); }
     catch (SecurityTokenException) { return(null !); }
 }
示例#4
0
 public abstract Microsoft.IdentityModel.Tokens.TokenValidationResult WilsonJwt(BenchmarkToken token);
示例#5
0
 public override IDictionary <string, object> Jwt_Net(BenchmarkToken token)
 {
     throw new NotSupportedException();
 }
示例#6
0
 public override Dictionary <string, object> jose_jwt(BenchmarkToken token)
 {
     return(JoseDotNetCore(token.TokenString, Jose.JwsAlgorithm.none, signingKey));
 }
示例#7
0
 public override Microsoft.IdentityModel.Tokens.TokenValidationResult WilsonJwt(BenchmarkToken token)
 {
     return(WilsonJwtCore(token.TokenString, wilsonParametersWithoutSignature));
 }
示例#8
0
 public override ClaimsPrincipal Wilson(BenchmarkToken token)
 {
     return(WilsonCore(token.TokenString, wilsonParametersWithoutSignature));
 }
示例#9
0
 public override Jwt JsonWebToken(BenchmarkToken token)
 {
     JwtCore(token.TokenBinary, tokenValidationPolicyWithoutSignature, out var jwt);
     jwt.Dispose();
     return(jwt);
 }
示例#10
0
 public abstract Jwt JsonWebToken(BenchmarkToken token);
示例#11
0
 public override Dictionary <string, object> jose_jwt(BenchmarkToken token)
 {
     return(JoseDotNetCore(token.TokenString, Jose.JweEncryption.A128CBC_HS256, Jose.JweAlgorithm.A128KW, encryptionKey));
 }
示例#12
0
 public override TokenValidationResult JsonWebToken(BenchmarkToken token)
 {
     return(JwtCore(token.InvalidTokenBinary, tokenValidationPolicy));
 }
示例#13
0
 public override Dictionary <string, object> jose_jwt(BenchmarkToken token)
 {
     throw new NotImplementedException();
 }
示例#14
0
 public abstract Dictionary <string, object> jose_jwt(BenchmarkToken token);
示例#15
0
 public override IDictionary <string, object> Jwt_Net(BenchmarkToken token)
 {
     return(JwtDotNetCore(token.TokenString, signingKey, true));
 }
示例#16
0
 public abstract IDictionary <string, object> Jwt_Net(BenchmarkToken token);
示例#17
0
 public override TokenValidationResult JsonWebToken(BenchmarkToken token)
 {
     return(JwtCore(token.TokenBinary, tokenValidationPolicyWithoutSignature));
 }
示例#18
0
 public abstract ClaimsPrincipal Wilson(BenchmarkToken token);
示例#19
0
 public abstract TokenValidationResult JsonWebToken(BenchmarkToken token);