Skip to content

Commit

Permalink
Merge pull request #62 from DolphFlynn/test
Browse files Browse the repository at this point in the history
Update EC key round trip test.
  • Loading branch information
DolphFlynn authored Aug 17, 2024
2 parents 0019246 + 032105b commit 9ca22c8
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 9ca22c8

Please sign in to comment.