File tree Expand file tree Collapse file tree 4 files changed +6
-62
lines changed
main/java/org/springframework/security/oauth2/jwt
test/java/org/springframework/security/oauth2/jwt Expand file tree Collapse file tree 4 files changed +6
-62
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2020 the original author or authors.
2+ * Copyright 2002-2021 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
4242import com .nimbusds .jose .proc .JWSKeySelector ;
4343import com .nimbusds .jose .proc .JWSVerificationKeySelector ;
4444import com .nimbusds .jose .proc .SecurityContext ;
45+ import com .nimbusds .jose .proc .SingleKeyJWSKeySelector ;
4546import com .nimbusds .jose .util .Resource ;
4647import com .nimbusds .jose .util .ResourceRetriever ;
4748import com .nimbusds .jwt .JWT ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2020 the original author or authors.
2+ * Copyright 2002-2021 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
4242import com .nimbusds .jose .proc .JWSKeySelector ;
4343import com .nimbusds .jose .proc .JWSVerificationKeySelector ;
4444import com .nimbusds .jose .proc .SecurityContext ;
45+ import com .nimbusds .jose .proc .SingleKeyJWSKeySelector ;
4546import com .nimbusds .jwt .JWT ;
4647import com .nimbusds .jwt .JWTClaimsSet ;
4748import com .nimbusds .jwt .JWTParser ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2020 the original author or authors.
2+ * Copyright 2002-2021 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -503,8 +503,7 @@ public void decodeWhenUsingSecretKeyAndIncorrectAlgorithmThenThrowsJwtException(
503503 .macAlgorithm (MacAlgorithm .HS512 )
504504 .build ();
505505 assertThatExceptionOfType (BadJwtException .class )
506- .isThrownBy (() -> decoder .decode (signedJWT .serialize ()))
507- .withMessageContaining ("Unsupported algorithm of HS256" );
506+ .isThrownBy (() -> decoder .decode (signedJWT .serialize ()));
508507 // @formatter:on
509508 }
510509
You can’t perform that action at this time.
0 commit comments