Class KeyPairWrapper
- java.lang.Object
-
- net.schmizz.sshj.userauth.keyprovider.KeyPairWrapper
-
- All Implemented Interfaces:
KeyProvider
public class KeyPairWrapper extends java.lang.Object implements KeyProvider
AKeyProviderwrapper aroundKeyPair
-
-
Constructor Summary
Constructors Constructor Description KeyPairWrapper(java.security.KeyPair kp)KeyPairWrapper(java.security.PublicKey publicKey, java.security.PrivateKey privateKey)
-
Method Summary
Modifier and Type Method Description java.security.PrivateKeygetPrivate()java.security.PublicKeygetPublic()KeyTypegetType()
-
-
-
Method Detail
-
getPrivate
public java.security.PrivateKey getPrivate()
- Specified by:
getPrivatein interfaceKeyProvider- Returns:
- the private key.
-
getPublic
public java.security.PublicKey getPublic()
- Specified by:
getPublicin interfaceKeyProvider- Returns:
- the public key.
-
getType
public KeyType getType()
- Specified by:
getTypein interfaceKeyProvider- Returns:
- the
KeyType.
-
-