Class SignatureEd25519
java.lang.Object
org.apache.sshd.common.signature.AbstractSignature
org.apache.sshd.common.util.security.eddsa.generic.SignatureEd25519
- All Implemented Interfaces:
AlgorithmNameProvider, Signature
An ed25519 signature.
- Author:
- Apache MINA SSHD Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoVerify(byte[] data) booleanverify(SessionContext session, byte[] sig) Verify against the given signatureMethods inherited from class AbstractSignature
doInitSignature, extractEncodedSignature, extractEncodedSignature, getAlgorithm, getSignature, getSshAlgorithmName, initSigner, initVerifier, sign, toString, update
-
Constructor Details
-
SignatureEd25519
public SignatureEd25519()
-
-
Method Details
-
verify
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
-
doVerify
- Overrides:
doVerifyin classAbstractSignature- Throws:
SignatureException
-