parseFromPEMEncodedObjects() parses the PEM string twice
Issue #344
resolved
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)
-
-
- changed status to open
-
- changed status to resolved
Fixed: 506adf1
- Log in to comment
Probably not
Thanks for alerting us