Class KeyPairIdentity
java.lang.Object
org.apache.sshd.client.auth.pubkey.KeyPairIdentity
- All Implemented Interfaces:
PublicKeyIdentity
,SignatureFactoriesHolder
Uses a
KeyPair
to generate the identity signature- Author:
- Apache MINA SSHD Project
-
Constructor Summary
ConstructorDescriptionKeyPairIdentity
(SignatureFactoriesManager primary, SignatureFactoriesManager secondary, KeyPair pair) -
Method Summary
Modifier and TypeMethodDescriptionsign
(SessionContext session, String algo, byte[] data) toString()
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 Details
-
KeyPairIdentity
public KeyPairIdentity(SignatureFactoriesManager primary, SignatureFactoriesManager secondary, KeyPair pair)
-
-
Method Details
-
getKeyIdentity
- Specified by:
getKeyIdentity
in interfacePublicKeyIdentity
-
getSignatureFactories
- Specified by:
getSignatureFactories
in interfaceSignatureFactoriesHolder
-
sign
public Map.Entry<String,byte[]> sign(SessionContext session, String algo, byte[] data) throws Exception - Specified by:
sign
in interfacePublicKeyIdentity
- Throws:
Exception
-
toString
-