| Constructor and Description |
|---|
DigestImpl() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest(byte[] content)
Method responsible for generating a summary of bytes passed as parameter.
|
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.
|
public void setAlgorithm(String algorithm)
DigestsetAlgorithm in interface Digestalgorithm - Algorithm namepublic byte[] digest(byte[] content)
public byte[] digestFile(File file)
DigestdigestFile in interface Digestfile - file to be processedpublic String digestFileHex(File file)
DigestdigestFileHex in interface Digestfile - file to be processedpublic String digestHex(byte[] content)
Digestpublic void setAlgorithm(DigestAlgorithmEnum algorithm)
DigestsetAlgorithm in interface Digestalgorithm - algorithm representationDigestAlgorithmEnumCopyright © 2021 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.