File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
oauth2/oauth2-jose/src/test/java/org/springframework/security/oauth2/jwt Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5050 *
5151 * @author Ziqin Wang
5252 */
53- public class NimbusJwtEncoderDecoderTests {
53+ class NimbusJwtEncoderDecoderTests {
5454
5555 @ Test
56- public void encodeAndDecodeHS256 () throws GeneralSecurityException {
56+ void encodeAndDecodeHS256 () throws GeneralSecurityException {
5757 KeyGenerator keyGenerator = KeyGenerator .getInstance ("HmacSHA256" );
5858 SecretKey secretKey = keyGenerator .generateKey ();
5959
@@ -68,7 +68,7 @@ public void encodeAndDecodeHS256() throws GeneralSecurityException {
6868 }
6969
7070 @ Test
71- public void encodeAndDecodeRS256 () throws GeneralSecurityException {
71+ void encodeAndDecodeRS256 () throws GeneralSecurityException {
7272 KeyPairGenerator keyPairGenerator = KeyPairGenerator .getInstance ("RSA" );
7373 keyPairGenerator .initialize (2048 );
7474 KeyPair keyPair = keyPairGenerator .generateKeyPair ();
@@ -86,7 +86,7 @@ public void encodeAndDecodeRS256() throws GeneralSecurityException {
8686 }
8787
8888 @ Test
89- public void encodeAndDecodeES256 () throws GeneralSecurityException , JOSEException {
89+ void encodeAndDecodeES256 () throws GeneralSecurityException , JOSEException {
9090 KeyPairGenerator keyPairGenerator = KeyPairGenerator .getInstance ("EC" );
9191 keyPairGenerator .initialize (new ECGenParameterSpec ("secp256r1" ));
9292 KeyPair keyPair = keyPairGenerator .generateKeyPair ();
You can’t perform that action at this time.
0 commit comments