Package org.apache.maven.api.services
Interface ChecksumAlgorithmService.ChecksumAlgorithm
- Enclosing interface:
ChecksumAlgorithmService
public static interface ChecksumAlgorithmService.ChecksumAlgorithm
The checksum algorithm.
-
Method Summary
Modifier and TypeMethodDescriptionEach invocation of this method returns a new instance of calculator, nevernull
value.Returns the file extension to be used for given checksum file (without leading dot), nevernull
.getName()
Returns the algorithm name, usually used as key, nevernull
value.
-
Method Details
-
getName
Returns the algorithm name, usually used as key, nevernull
value. The name is a standard name of algorithm (if applicable) or any other designator that is algorithm commonly referred with. Example: "SHA-1". -
getFileExtension
Returns the file extension to be used for given checksum file (without leading dot), nevernull
. The extension should be file and URL path friendly, and may differ from algorithm name. The checksum extension SHOULD NOT contain dot (".") character. Example: "sha1". -
getCalculator
Each invocation of this method returns a new instance of calculator, nevernull
value.
-