Interface ChecksumAlgorithmFactory
-
- All Known Implementing Classes:
ChecksumAlgorithmFactorySupport
public interface ChecksumAlgorithmFactory
A component representing a checksum factory: providesChecksumAlgorithm
instances, name and extension to be used with this algorithm. While directly injecting components of this type is possible, it is not recommended. To obtain factory instances useChecksumAlgorithmFactorySelector
instead.- Since:
- 1.8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChecksumAlgorithm
getAlgorithm()
Each invocation of this method returns a new instance of algorithm, nevernull
value.java.lang.String
getFileExtension()
Returns the file extension to be used for given checksum file (without leading dot), nevernull
.java.lang.String
getName()
Returns the algorithm name, usually used as key, nevernull
value.
-
-
-
Method Detail
-
getName
java.lang.String 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
java.lang.String 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 value returned bygetName()
. The checksum extension SHOULD NOT contain dot (".") character. Example: "sha1".
-
getAlgorithm
ChecksumAlgorithm getAlgorithm()
Each invocation of this method returns a new instance of algorithm, nevernull
value.
-
-