Class SignatureEd25519
java.lang.Object
org.apache.sshd.common.signature.AbstractSignature
org.apache.sshd.common.util.security.eddsa.SignatureEd25519
- All Implemented Interfaces:
AlgorithmNameProvider
,Signature
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
verify
(SessionContext session, byte[] sig) Verify against the given signatureMethods 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
-
Constructor Details
-
SignatureEd25519
public SignatureEd25519()
-
-
Method Details
-
verify
Description copied from interface:Signature
Verify against the given signature- Parameters:
session
- TheSessionContext
for calling this method - may benull
if not called within a session contextsig
- The signed data- Returns:
true
if signature is valid- Throws:
Exception
- If failed to extract signed data for validation
-