@@ -36,7 +36,7 @@ public void shouldAddHeader() throws Exception {
3636 .sign (Algorithm .HMAC256 ("secret" ));
3737
3838 assertThat (signed , is (notNullValue ()));
39- assertThat (TokenUtils .splitToken (signed )[0 ], is ("eyJhbGciOiJIUzI1NiIsImFzZCI6MTIzfQ " ));
39+ assertThat (TokenUtils .splitToken (signed )[0 ], is ("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImFzZCI6MTIzfQ " ));
4040 }
4141
4242 @ Test
@@ -134,7 +134,7 @@ public void shouldSetCorrectAlgorithmInTheHeader() throws Exception {
134134 .sign (Algorithm .HMAC256 ("secret" ));
135135
136136 assertThat (signed , is (notNullValue ()));
137- assertThat (TokenUtils .splitToken (signed )[0 ], is ("eyJhbGciOiJIUzI1NiJ9 " ));
137+ assertThat (TokenUtils .splitToken (signed )[0 ], is ("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 " ));
138138 }
139139
140140 @ Test
@@ -158,7 +158,7 @@ public void shouldAcceptCustomClaimOfTypeString() throws Exception {
158158 String jwt = JWTCreator .init ()
159159 .withClaim ("name" , "value" )
160160 .sign (Algorithm .HMAC256 ("secret" ));
161- String token = "eyJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjoidmFsdWUifQ.4qDWJcNQHDVDW1iAcIgZNiu-qqJQ0RIq8X3ETijBx5k " ;
161+ String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjoidmFsdWUifQ.eR3DUeX142NjueZjkqCn_NqxJpb5k-Y55Oo0N-ap3rI " ;
162162
163163 assertThat (jwt , is (notNullValue ()));
164164 assertThat (jwt , is (token ));
@@ -169,7 +169,7 @@ public void shouldAcceptCustomClaimOfTypeInteger() throws Exception {
169169 String jwt = JWTCreator .init ()
170170 .withClaim ("name" , 123 )
171171 .sign (Algorithm .HMAC256 ("secret" ));
172- String token = "eyJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjoxMjN9.5i6ga8YMteicIeZrFZgJyW4OnI_2jpMaUXcDt-_jme4 " ;
172+ String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjoxMjN9.7Diqx9FPPuaw9ESwkZOHL2BARjqQz00qrHYOm0lKcgQ " ;
173173
174174 assertThat (jwt , is (notNullValue ()));
175175 assertThat (jwt , is (token ));
@@ -180,7 +180,7 @@ public void shouldAcceptCustomClaimOfTypeDouble() throws Exception {
180180 String jwt = JWTCreator .init ()
181181 .withClaim ("name" , 23.45 )
182182 .sign (Algorithm .HMAC256 ("secret" ));
183- String token = "eyJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjoyMy40NX0.aFNlMk3WiikukJq1jo4Tf8ztR180wjTfSpqec0xKKqU " ;
183+ String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjoyMy40NX0.VwOI-xjYFthgT43b9EYcaOSIpGSD6PVLSCPuGzDuEnQ " ;
184184
185185 assertThat (jwt , is (notNullValue ()));
186186 assertThat (jwt , is (token ));
@@ -191,7 +191,7 @@ public void shouldAcceptCustomClaimOfTypeBoolean() throws Exception {
191191 String jwt = JWTCreator .init ()
192192 .withClaim ("name" , true )
193193 .sign (Algorithm .HMAC256 ("secret" ));
194- String token = "eyJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjp0cnVlfQ.jseAYuhVmT1boYrHQfn9wXmomWq_tdGfphLtG_2tj_M " ;
194+ String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjp0cnVlfQ.8L_Td4EtEAUuQeNCU0fuJEu78SS8K3Y5OOkFzYA81g8 " ;
195195
196196 assertThat (jwt , is (notNullValue ()));
197197 assertThat (jwt , is (token ));
@@ -203,7 +203,7 @@ public void shouldAcceptCustomClaimOfTypeDate() throws Exception {
203203 String jwt = JWTCreator .init ()
204204 .withClaim ("name" , date )
205205 .sign (Algorithm .HMAC256 ("secret" ));
206- String token = "eyJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjoxNDc4ODkxNTIxfQ.ZU1B1pDLYoJZhWD8h3_QsK5dViolxvL5Q43Yz9QIxL4 " ;
206+ String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjoxNDc4ODkxNTIxfQ.0esDU87VaYbx6KQDWhFrRPNzq3rl3vcHO8T21fao28U " ;
207207
208208 assertThat (jwt , is (notNullValue ()));
209209 assertThat (jwt , is (token ));
@@ -214,7 +214,7 @@ public void shouldAcceptCustomArrayClaimOfTypeString() throws Exception {
214214 String jwt = JWTCreator .init ()
215215 .withArrayClaim ("name" , new String []{"text" , "123" , "true" })
216216 .sign (Algorithm .HMAC256 ("secret" ));
217- String token = "eyJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA " ;
217+ String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.TTP2tJjVdoOzKfIgDcn_MSP7XQpafeVCKVNE2Y3-0Hk " ;
218218
219219 assertThat (jwt , is (notNullValue ()));
220220 assertThat (jwt , is (token ));
@@ -225,7 +225,7 @@ public void shouldAcceptCustomArrayClaimOfTypeInteger() throws Exception {
225225 String jwt = JWTCreator .init ()
226226 .withArrayClaim ("name" , new Integer []{1 , 2 , 3 })
227227 .sign (Algorithm .HMAC256 ("secret" ));
228- String token = "eyJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE " ;
228+ String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 .eyJuYW1lIjpbMSwyLDNdfQ.1AdYaNBWR8lPB0yOxUtnQjuOU7tzD4LWz2AWrziPUqA " ;
229229
230230 assertThat (jwt , is (notNullValue ()));
231231 assertThat (jwt , is (token ));
0 commit comments