Package org.apache.sshd.common.digest
Interface Digest
-
- All Superinterfaces:
AlgorithmNameProvider
,java.lang.Comparable<Digest>
,DigestInformation
- All Known Implementing Classes:
BaseDigest
public interface Digest extends DigestInformation, java.lang.Comparable<Digest>
Interface used to compute digests, based on algorithms such as MD5 or SHA1. The digest implementation are compared first by the algorithm name (case insensitive and second according to the block size
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
digest()
void
init()
void
update(byte[] data)
void
update(byte[] data, int start, int len)
-
Methods inherited from interface org.apache.sshd.common.AlgorithmNameProvider
getAlgorithm
-
Methods inherited from interface org.apache.sshd.common.digest.DigestInformation
getBlockSize
-
-
-
-
Method Detail
-
init
void init() throws java.lang.Exception
- Throws:
java.lang.Exception
-
update
void update(byte[] data) throws java.lang.Exception
- Throws:
java.lang.Exception
-
update
void update(byte[] data, int start, int len) throws java.lang.Exception
- Throws:
java.lang.Exception
-
digest
byte[] digest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-