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 |
FileKeyProvider.Format
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, makeBouncyPasswordFinder, readKeyPair, toString
public PublicKey getPublic() throws IOException
getPublic
in interface KeyProvider
getPublic
in class PKCS8KeyFile
IOException
- if there is an I/O error retrieving the public keypublic void init(File location)
init
in interface FileKeyProvider
init
in class PKCS8KeyFile
public void init(String privateKey, String publicKey)
init
in interface FileKeyProvider
init
in class PKCS8KeyFile
Copyright © 2009-2014. All Rights Reserved.