public class

KeyPairWrapper

extends Object
implements KeyProvider
java.lang.Object
   ↳ net.schmizz.sshj.userauth.keyprovider.KeyPairWrapper

Class Overview

A KeyProvider wrapper around java.security.KeyPair

Summary

Fields
private final KeyPair kp
private final KeyType type
Public Constructors
KeyPairWrapper(KeyPair kp)
KeyPairWrapper(PublicKey publicKey, PrivateKey privateKey)
Public Methods
PrivateKey getPrivate()
PublicKey getPublic()
KeyType getType()
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.schmizz.sshj.userauth.keyprovider.KeyProvider

Fields

private final KeyPair kp

private final KeyType type

Public Constructors

public KeyPairWrapper (KeyPair kp)

Parameters
kp

public KeyPairWrapper (PublicKey publicKey, PrivateKey privateKey)

Parameters
publicKey
privateKey

Public Methods

public PrivateKey getPrivate ()

public PublicKey getPublic ()

public KeyType getType ()