public interface ChecksumAlgorithmFactory
ChecksumAlgorithm
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 use ChecksumAlgorithmFactorySelector
instead.Modifier and Type | Method and Description |
---|---|
ChecksumAlgorithm |
getAlgorithm()
Each invocation of this method returns a new instance of algorithm, never
null value. |
String |
getFileExtension()
Returns the file extension to be used for given checksum file (without leading dot), never
null . |
String |
getName()
Returns the algorithm name, usually used as key, never
null value. |
String getName()
null
value. The name is a standard name of
algorithm (if applicable) or any other designator that is algorithm commonly referred with. Example: "SHA-1".String getFileExtension()
null
. The
extension should be file and URL path friendly, and may differ from value returned by getName()
.
Example: "sha1".ChecksumAlgorithm getAlgorithm()
null
value.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.