parseFromPEMEncodedObjects() parses the PEM string twice

Issue #344 resolved
Former user created an issue

The JWT.parseFromPEMEncodedObjects() method parses the pemEncodedObjects twice with the same outcome. This is really bad for performance.

The first call to PEMEncodedKeyParser.parseKeys(pemEncodedObjects) is done at JWK.java:L727 and the other is done right below at JWK.java:L732 which calls through to JWK.java:L811 essentially doing the same thing twice.

Is that intentional?

Comments (3)

  1. Log in to comment