public class OpenSSHKeyFile extends PKCS8KeyFile
".pub" extension. This allows to delay requesting of the passphrase until the
private key is requested.PKCS8KeyFile| Modifier and Type | Class and Description |
|---|---|
static class |
OpenSSHKeyFile.Factory |
kp, log, passphrase, pwdf, resource, type| Constructor and Description |
|---|
OpenSSHKeyFile() |
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
getPublic() |
void |
init(File location) |
void |
init(String privateKey,
String publicKey) |
getPrivate, getType, init, init, init, init, readKeyPair, toStringpublic PublicKey getPublic() throws IOException
getPublic in interface KeyProvidergetPublic in class PKCS8KeyFileIOException - if there is an I/O error retrieving the public keypublic void init(File location)
init in interface FileKeyProviderinit in class PKCS8KeyFilepublic void init(String privateKey, String publicKey)
init in interface FileKeyProviderinit in class PKCS8KeyFileCopyright © 2009–2014. All rights reserved.