Extracts the private key from an unencrypted PEMFile. @param keyAlgorithm Key algorithm if known or null if it needs to be obtained from the PEM file @param format The format used to encode the private key @param filename The name of the PEM file @return The clear text private key extrac
(String keyAlgorithm, Format format, String filename)
| 340 | * @throws GeneralSecurityException If there is a cryptographic error processing the PEM file |
| 341 | */ |
| 342 | public PrivateKey toPrivateKey(String keyAlgorithm, Format format, String filename) |
| 343 | throws GeneralSecurityException { |
| 344 | return toPrivateKey(keyAlgorithm, format, filename, decode()); |
| 345 | } |
| 346 | |
| 347 | |
| 348 | /** |
no test coverage detected