MCPcopy Create free account
hub / github.com/apache/tomcat / testKey

Method testKey

test/org/apache/tomcat/util/net/jsse/TestPEMFile.java:125–129  ·  view source on GitHub ↗
(String file, String password, String passwordFile)

Source from the content-addressed store, hash-verified

123
124
125 private void testKey(String file, String password, String passwordFile) throws Exception {
126 PEMFile pemFile = new PEMFile(getPath(file), password, getPath(passwordFile), null);
127 PrivateKey pk = pemFile.getPrivateKey();
128 Assert.assertNotNull(pk);
129 }
130
131
132 private String getPath(String file) throws IOException {

Callers 3

testKeyPkcs1Method · 0.95
testKeyEncryptedMethod · 0.95

Calls 2

getPathMethod · 0.95
getPrivateKeyMethod · 0.95

Tested by

no test coverage detected