public class

OpenSSHKeyFile

extends PKCS8KeyFile
java.lang.Object
   ↳ net.schmizz.sshj.userauth.keyprovider.PKCS8KeyFile
     ↳ net.schmizz.sshj.userauth.keyprovider.OpenSSHKeyFile

Class Overview

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. This allows to delay requesting of the passphrase until the private key is requested.

See Also

Summary

Nested Classes
class OpenSSHKeyFile.Factory  
Fields
private PublicKey pubKey
[Expand]
Inherited Fields
From class net.schmizz.sshj.userauth.keyprovider.PKCS8KeyFile
Public Constructors
OpenSSHKeyFile()
Public Methods
PublicKey getPublic()
void init(String privateKey, String publicKey)
void init(File location)
[Expand]
Inherited Methods
From class net.schmizz.sshj.userauth.keyprovider.PKCS8KeyFile
From class java.lang.Object
From interface net.schmizz.sshj.userauth.keyprovider.FileKeyProvider
From interface net.schmizz.sshj.userauth.keyprovider.KeyProvider

Fields

private PublicKey pubKey

Public Constructors

public OpenSSHKeyFile ()

Public Methods

public PublicKey getPublic ()

Throws
IOException

public void init (String privateKey, String publicKey)

Parameters
privateKey
publicKey

public void init (File location)

Parameters
location