public interface

KeyProvider

net.schmizz.sshj.userauth.keyprovider.KeyProvider
Known Indirect Subclasses

Class Overview

A KeyProvider is a container for a public-private keypair.

Summary

Public Methods
abstract PrivateKey getPrivate()
abstract PublicKey getPublic()
abstract KeyType getType()

Public Methods

public abstract PrivateKey getPrivate ()

Returns
  • the private key.
Throws
IOException if there is an I/O error retrieving the private key

public abstract PublicKey getPublic ()

Returns
  • the public key.
Throws
IOException if there is an I/O error retrieving the public key

public abstract KeyType getType ()

Returns
Throws
IOException if there is an I/O error retrieving the key type