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 |
---|---|
java.security.PublicKey |
getPublic() |
void |
init(java.io.File location) |
void |
init(java.lang.String privateKey,
java.lang.String publicKey) |
getPrivate, getType, init, init, init, init, readKeyPair, toString
public java.security.PublicKey getPublic() throws java.io.IOException
getPublic
in interface KeyProvider
getPublic
in class PKCS8KeyFile
java.io.IOException
- if there is an I/O error retrieving the public keypublic void init(java.io.File location)
init
in interface FileKeyProvider
init
in class PKCS8KeyFile
public void init(java.lang.String privateKey, java.lang.String publicKey)
init
in interface FileKeyProvider
init
in class PKCS8KeyFile