| java.lang.Object |
| ↳ |
net.schmizz.sshj.userauth.keyprovider.PKCS8KeyFile |
Known Direct Subclasses
| OpenSSHKeyFile |
Represents an OpenSSH identity that consists of a PKCS8-encoded private key file and an unencrypted public key file
of the same name with the ".pub" extension. |
|
Class Overview
Represents a PKCS8-encoded key file. This is the format used by OpenSSH and OpenSSL.
Summary
| Nested Classes |
|
class |
PKCS8KeyFile.Factory |
|
Fields
protected
final
Logger
log
protected
char[]
passphrase
Public Constructors
Public Methods
public
PrivateKey
getPrivate
()
public
PublicKey
getPublic
()
public
void
init
(String privateKey, String publicKey, PasswordFinder pwdf)
Parameters
| privateKey
| |
| publicKey
| |
| pwdf
| |
public
void
init
(String privateKey, String publicKey)
public
void
init
(File location)
public
String
toString
()
Protected Methods
protected
PasswordFinder
makeBouncyPasswordFinder
()
protected
KeyPair
readKeyPair
()