public interface Digest
DigestImpl| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest(byte[] content)
Method responsible for generating a digest of the content passed as a parameter,
using the algorithm set by the setAlgorithm () method.
|
byte[] |
digestFile(File file)
Returns the Digest of a file
|
String |
digestFileHex(File file)
Returns the summary of a file in hexadecimal character format
|
String |
digestHex(byte[] content)
Returns the digest of an array of bytes in hexadecimal character format.
|
void |
setAlgorithm(DigestAlgorithmEnum algorithm)
Set the algorithm used by the digest method.
|
void |
setAlgorithm(String algorithm)
Set the algorithm used by the digest method.
|
void setAlgorithm(DigestAlgorithmEnum algorithm)
algorithm - algorithm representationDigestAlgorithmEnumvoid setAlgorithm(String algorithm)
algorithm - Algorithm namebyte[] digest(byte[] content)
content - content to be processedString digestHex(byte[] content)
content - content to be processedbyte[] digestFile(File file)
file - file to be processedCopyright © 2021 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.