@@ -10,8 +10,8 @@ public class JwtHeaderTests
1010 {
1111 class TestResult
1212 {
13- public JwtManager . Helpers . Algorithm algorithm { get ; set ; }
14- public JwtManager . Helpers . KeySize size { get ; set ; }
13+ public JwtManager . Enums . Algorithm algorithm { get ; set ; }
14+ public JwtManager . Enums . KeySize size { get ; set ; }
1515 public string alg { get ; set ; }
1616 public string typ { get ; set ; }
1717 }
@@ -22,12 +22,12 @@ public void ValidCases()
2222 JwtManager . JwtHeader header = new JwtManager . JwtHeader ( ) ;
2323
2424 TestResult [ ] tests = {
25- new TestResult { algorithm = JwtManager . Helpers . Algorithm . RSA , size = JwtManager . Helpers . KeySize . S256 , alg = "RS256" , typ = "JWT" } ,
26- new TestResult { algorithm = JwtManager . Helpers . Algorithm . RSA , size = JwtManager . Helpers . KeySize . S384 , alg = "RS384" , typ = "JWT" } ,
27- new TestResult { algorithm = JwtManager . Helpers . Algorithm . RSA , size = JwtManager . Helpers . KeySize . S512 , alg = "RS512" , typ = "JWT" } ,
28- new TestResult { algorithm = JwtManager . Helpers . Algorithm . HMAC , size = JwtManager . Helpers . KeySize . S256 , alg = "HS256" , typ = "JWT" } ,
29- new TestResult { algorithm = JwtManager . Helpers . Algorithm . HMAC , size = JwtManager . Helpers . KeySize . S384 , alg = "HS384" , typ = "JWT" } ,
30- new TestResult { algorithm = JwtManager . Helpers . Algorithm . HMAC , size = JwtManager . Helpers . KeySize . S512 , alg = "HS512" , typ = "JWT" }
25+ new TestResult { algorithm = JwtManager . Enums . Algorithm . RSA , size = JwtManager . Enums . KeySize . S256 , alg = "RS256" , typ = "JWT" } ,
26+ new TestResult { algorithm = JwtManager . Enums . Algorithm . RSA , size = JwtManager . Enums . KeySize . S384 , alg = "RS384" , typ = "JWT" } ,
27+ new TestResult { algorithm = JwtManager . Enums . Algorithm . RSA , size = JwtManager . Enums . KeySize . S512 , alg = "RS512" , typ = "JWT" } ,
28+ new TestResult { algorithm = JwtManager . Enums . Algorithm . HMAC , size = JwtManager . Enums . KeySize . S256 , alg = "HS256" , typ = "JWT" } ,
29+ new TestResult { algorithm = JwtManager . Enums . Algorithm . HMAC , size = JwtManager . Enums . KeySize . S384 , alg = "HS384" , typ = "JWT" } ,
30+ new TestResult { algorithm = JwtManager . Enums . Algorithm . HMAC , size = JwtManager . Enums . KeySize . S512 , alg = "HS512" , typ = "JWT" }
3131 } ;
3232
3333 foreach ( TestResult test in tests )
@@ -46,7 +46,7 @@ public void CheckEP512Exception()
4646
4747 try
4848 {
49- header . Set ( JwtManager . Helpers . Algorithm . RSASSA , JwtManager . Helpers . KeySize . S512 ) ;
49+ header . Set ( JwtManager . Enums . Algorithm . RSASSA , JwtManager . Enums . KeySize . S512 ) ;
5050 }
5151 catch ( Exception ex )
5252 {
@@ -65,7 +65,7 @@ public void CheckNonValidOptions()
6565
6666 try
6767 {
68- header . Set ( JwtManager . Helpers . Algorithm . RSASSA , ( JwtManager . Helpers . KeySize ) 555 ) ;
68+ header . Set ( JwtManager . Enums . Algorithm . RSASSA , ( JwtManager . Enums . KeySize ) 555 ) ;
6969 }
7070 catch ( Exception ex )
7171 {
0 commit comments