Class KeyPairIdentity
- java.lang.Object
-
- org.apache.sshd.client.auth.pubkey.KeyPairIdentity
-
- All Implemented Interfaces:
PublicKeyIdentity,SignatureFactoriesHolder
public class KeyPairIdentity extends Object implements PublicKeyIdentity, SignatureFactoriesHolder
Uses aKeyPairto generate the identity signature- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description KeyPairIdentity(SignatureFactoriesManager primary, SignatureFactoriesManager secondary, KeyPair pair)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyPairgetKeyIdentity()List<NamedFactory<Signature>>getSignatureFactories()Map.Entry<String,byte[]>sign(SessionContext session, String algo, byte[] data)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.signature.SignatureFactoriesHolder
getSignatureFactoriesNameList, getSignatureFactoriesNames
-
-
-
-
Constructor Detail
-
KeyPairIdentity
public KeyPairIdentity(SignatureFactoriesManager primary, SignatureFactoriesManager secondary, KeyPair pair)
-
-
Method Detail
-
getKeyIdentity
public KeyPair getKeyIdentity()
- Specified by:
getKeyIdentityin interfacePublicKeyIdentity
-
getSignatureFactories
public List<NamedFactory<Signature>> getSignatureFactories()
- Specified by:
getSignatureFactoriesin interfaceSignatureFactoriesHolder
-
sign
public Map.Entry<String,byte[]> sign(SessionContext session, String algo, byte[] data) throws Exception
- Specified by:
signin interfacePublicKeyIdentity- Throws:
Exception
-
-