Class KeyPairWrapper
- java.lang.Object
-
- net.schmizz.sshj.userauth.keyprovider.KeyPairWrapper
-
- All Implemented Interfaces:
KeyProvider
public class KeyPairWrapper extends java.lang.Object implements KeyProvider
AKeyProvider
wrapper aroundKeyPair
-
-
Constructor Summary
Constructors Constructor Description KeyPairWrapper(java.security.KeyPair kp)
KeyPairWrapper(java.security.PublicKey publicKey, java.security.PrivateKey privateKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.PrivateKey
getPrivate()
java.security.PublicKey
getPublic()
KeyType
getType()
-
-
-
Field Detail
-
kp
private final java.security.KeyPair kp
-
type
private final KeyType type
-
-
Method Detail
-
getPrivate
public java.security.PrivateKey getPrivate()
- Specified by:
getPrivate
in interfaceKeyProvider
- Returns:
- the private key.
-
getPublic
public java.security.PublicKey getPublic()
- Specified by:
getPublic
in interfaceKeyProvider
- Returns:
- the public key.
-
getType
public KeyType getType()
- Specified by:
getType
in interfaceKeyProvider
- Returns:
- the
KeyType
.
-
-