adobe / aio-lib-java-cloudmanager

Java wrapper to the Adobe Cloud Manager API.
https://opensource.adobe.com/aio-lib-java-cloudmanager/
Apache License 2.0
3 stars 9 forks source link

Support PEM PKCS#8 private keys #12

Closed kwin closed 4 years ago

kwin commented 4 years ago

This closes #11

Description

Provide helper methods to get a private key from a PEM encoded PKCS#8 string

Types of changes

Checklist:

codecov[bot] commented 4 years ago

Codecov Report

Merging #12 (44506a3) into main (1515519) will increase coverage by 0.21%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #12      +/-   ##
============================================
+ Coverage     89.19%   89.41%   +0.21%     
- Complexity      160      166       +6     
============================================
  Files            13       14       +1     
  Lines           537      548      +11     
  Branches         47       47              
============================================
+ Hits            479      490      +11     
  Misses           41       41              
  Partials         17       17              
Flag Coverage Δ Complexity Δ
unittests 89.41% <100.00%> (+0.21%) 0.00 <6.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
.../io/adobe/cloudmanager/AdobeClientCredentials.java 100.00% <100.00%> (ø) 6.00 <6.00> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1515519...44506a3. Read the comment docs.

bstopp commented 4 years ago

Can you fix the merge conflict and add a test for this? Something that validates the String against the originally generated key pair.

kwin commented 4 years ago

If you are fine with the place of this static method I will add a test.

bstopp commented 4 years ago

Actually - now that I'm thinking about this i think there are more things to unpack:

WDYT?

kwin commented 4 years ago

@bstopp I changed this PR as you suggested. Please have another look.