Class SignatureEd25519
- java.lang.Object
-
- org.apache.sshd.common.signature.AbstractSignature
-
- org.apache.sshd.common.util.security.eddsa.SignatureEd25519
-
- All Implemented Interfaces:
AlgorithmNameProvider,Signature
public class SignatureEd25519 extends AbstractSignature
- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description SignatureEd25519()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanverify(SessionContext session, byte[] sig)Verify against the given signature-
Methods inherited from class org.apache.sshd.common.signature.AbstractSignature
doInitSignature, doVerify, extractEncodedSignature, extractEncodedSignature, getAlgorithm, getSignature, initSigner, initVerifier, sign, toString, update
-
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.Signature
getSshAlgorithmName, update
-
-
-
-
Method Detail
-
verify
public boolean verify(SessionContext session, byte[] sig) throws Exception
Description copied from interface:SignatureVerify against the given signature- Parameters:
session- TheSessionContextfor calling this method - may benullif not called within a session contextsig- The signed data- Returns:
trueif signature is valid- Throws:
Exception- If failed to extract signed data for validation
-
-