Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't specify JcaPEM providers as null (hierynomus#596)
* Don't specify JcaPEMKeyConverter provider as null If no provider is set in the `SecurityUtils`, no named provider should be set for the `JcaPEMKeyConverter` as this would cause a `missing provider` exception. * Don't specify JcePEMDecryptorProviderBuilder provider as null If no provider is set in the `SecurityUtils`, no named provider should be set for the `JcePEMDecryptorProviderBuilder` as this would cause a missing provider exception. This currently breaks `PKCS8KeyFile` if `SecurityUtils.setSecurityProvider(null)` and `SecurityUtils.setRegisterBouncyCastle(false)` is used.
- Loading branch information