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 |
log, passphrasekp, 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) |
readKeyPair, toStringgetPrivate, getType, init, init, init, initpublic java.security.PublicKey getPublic()
throws java.io.IOException
getPublic in interface KeyProvidergetPublic in class BaseFileKeyProviderjava.io.IOException - if there is an I/O error retrieving the public keypublic void init(java.io.File location)
init in interface FileKeyProviderinit in class BaseFileKeyProviderpublic void init(java.lang.String privateKey,
java.lang.String publicKey)
init in interface FileKeyProviderinit in class BaseFileKeyProvider