• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ebourg / jsign / #352
81%

Build:
DEFAULT BRANCH: master
Ran 08 Dec 2024 08:40PM UTC
Jobs 1
Files 131
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Dec 2024 08:28PM UTC coverage: 83.398% (+0.006%) from 83.392%
#352

push

ebourg
Make `PrivateKeyUtils#load` method file extension agnostic

As outlined in #264, this is achieved by trying to parse the key file
according to one of the supported formats in sequence until one works.
Given that there are only two supported formats at the moment, and that
PEM files are attempted first and more common in the wild than PVK, this
approach should have good enough performance. Because a Java exception
can only have a single cause, I've attached the underlying parse
exceptions to the higher-level `KeyException` as supressed exceptions.
These get displayed to consumers on e.g. stacktraces, allowing them to
know what exactly went wrong when parsing either format.

While at it, I've added a test to ensure that this extension-agnostic
behavior is maintained over time.

Resolves #264.

9 of 9 new or added lines in 1 file covered. (100.0%)

4722 of 5662 relevant lines covered (83.4%)

0.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #352.1 08 Dec 2024 08:40PM UTC 0
83.4
Source Files on build #352
Detailed source file information is not available for this build.
  • Back to Repo
  • 0e22350c on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc