net.schmizz.sshj.userauth.keyprovider
Class KeyPairWrapper
java.lang.Object
net.schmizz.sshj.userauth.keyprovider.KeyPairWrapper
- All Implemented Interfaces:
- KeyProvider
public class KeyPairWrapper
- extends Object
- implements KeyProvider
A KeyProvider
wrapper around KeyPair
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyPairWrapper
public KeyPairWrapper(KeyPair kp)
KeyPairWrapper
public KeyPairWrapper(PublicKey publicKey,
PrivateKey privateKey)
getPrivate
public PrivateKey getPrivate()
- Specified by:
getPrivate
in interface KeyProvider
- Returns:
- the private key.
getPublic
public PublicKey getPublic()
- Specified by:
getPublic
in interface KeyProvider
- Returns:
- the public key.
getType
public KeyType getType()
- Specified by:
getType
in interface KeyProvider
- Returns:
- the
KeyType
.
Copyright © 2009-2012. All Rights Reserved.