MCPcopy Index your code
hub / github.com/apache/tomcat / toPrivateKey

Method toPrivateKey

java/org/apache/tomcat/util/net/jsse/PEMFile.java:342–345  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 /**

Callers 1

PEMFileMethod · 0.95

Implementers 1

ApplicationPartjava/org/apache/catalina/core/Applicat

Calls 15

decodeMethod · 0.95
fromHexMethod · 0.95
deriveKeyPBKDF1Method · 0.95
parseTagSequenceMethod · 0.95
parseFullLengthMethod · 0.95
parseLengthMethod · 0.95
parseOIDAsBytesMethod · 0.95
equalsMethod · 0.95
toDottedOidStringMethod · 0.95
parseOctetStringMethod · 0.95
parseIntMethod · 0.95
peekTagMethod · 0.95

Tested by

no test coverage detected