Skip to content

Commit

Permalink
Update EC key round trip test.
Browse files Browse the repository at this point in the history
  • Loading branch information
DolphFlynn committed Aug 17, 2024
1 parent 0019246 commit 032105b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,12 @@ void publicRsaJWKtoPEM(String jwkString) throws PemException, ParseException {
@MethodSource("com.blackberry.jwteditor.PEMToJWKTests#ecPrivateValidPEMs")
void ecKeyPEMtoJWK(String pem) throws PemException {
JWK ecKey = PEMUtils.pemToECKey(pem);

// Keys have been converted to PKCS#8 so PEM serialization is different
String newPem = PEMUtils.jwkToPem(ecKey);
//assertEquals(pem, newPem);
JWK ecKey2 = PEMUtils.pemToECKey(newPem);

assertThat(ecKey2).isEqualTo(ecKey);
}

@ParameterizedTest
Expand Down

0 comments on commit 032105b

Please sign in to comment.