File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -94,15 +94,15 @@ private JwtHeader Header
94
94
{
95
95
JwtHeader header = new JwtHeader ( ) ;
96
96
header . Set ( Helpers . Algorithm . RSA , KeySize ) ;
97
- return Header ;
97
+ return header ;
98
98
}
99
99
}
100
100
101
101
private string SignerName
102
102
{
103
103
get
104
104
{
105
- return "SHA" + KeySize . ToString ( ) + "withRSA" ;
105
+ return "SHA" + ( int ) KeySize + "withRSA" ;
106
106
}
107
107
}
108
108
Original file line number Diff line number Diff line change @@ -258,9 +258,8 @@ public void SignDataWithInvalidHashAlgorithm()
258
258
e = ex ;
259
259
}
260
260
261
-
262
261
Assert . IsNotNull ( e , "An exception should be thrown" ) ;
263
- Assert . AreEqual ( e . Message , "Signer SHA555WITHRSA not recognised ." ) ;
262
+ Assert . AreEqual ( e . Message , "Invalid values for algorithm or size ." ) ;
264
263
}
265
264
266
265
[ TestMethod ]
You can’t perform that action at this time.
0 commit comments