Currently each consumer needs to create the private key instance themself. It would be handy if the AdobeClientCredentials would provide some method which creates a PrivateKey from a given String in the format outlined at https://tools.ietf.org/html/rfc7468#section-10
Currently each consumer needs to create the private key instance themself. It would be handy if the
AdobeClientCredentials
would provide some method which creates aPrivateKey
from a given String in the format outlined at https://tools.ietf.org/html/rfc7468#section-10The code for that is pretty straight-forward actually and one can use an approach like outlined in https://www.baeldung.com/java-read-pem-file-keys#3-get-private-key-from-pem-string.
The only question is whether only RSA keys should be supported or other types (DSA, EC) as well