public class PrivateKeyUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
load(File file,
String password)
Load the private key from the specified file.
|
public static PrivateKey load(File file, String password) throws KeyException
.pvk
for PVK files, .pem for PEM files).file - the file to load the key frompassword - the password protecting the keyKeyException - if the key cannot be loadedCopyright © 2012–2020. All rights reserved.