We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When calling the decryptPrivateKey() method, the PEMParser returns an object that is in fact already a PrivateKeyInfo.
Therefore, the code in the else-block is executed, which just blatantly casts the "keyPair" object to a "PEMKeyPair" -- Invalid cast.
Can you please fix this method, so that it uses the PrivateKeyInfo in case that is returned from the keyReader?
The text was updated successfully, but these errors were encountered:
Fixing BoxDeveloperEditionAPIConnection - decryptPrivateKey() - PEMPa…
11ab625
…rser returns PrivateKeyInfo already - Invalid cast box#470
Pull request: #471
Sorry, something went wrong.
bd3f2e1
…rser returns PrivateKeyInfo already - Invalid cast #470 (#471) * Fixing BoxDeveloperEditionAPIConnection - decryptPrivateKey() - PEMParser returns PrivateKeyInfo already - Invalid cast #470 * Adding space after 'cast'
No branches or pull requests
When calling the decryptPrivateKey() method, the PEMParser returns an object that is in fact already a PrivateKeyInfo.
Therefore, the code in the else-block is executed, which just blatantly casts the "keyPair" object to a "PEMKeyPair" -- Invalid cast.
Can you please fix this method, so that it uses the PrivateKeyInfo in case that is returned from the keyReader?
The text was updated successfully, but these errors were encountered: