org.apache.tools.ant.types.selectors.modifiedselector
public class DigestAlgorithm extends Object implements Algorithm
name | values | description | required |
---|---|---|---|
algorithm.algorithm | MD5 | SHA (default provider) | name of the algorithm the provider should use | no, defaults to MD5 |
algorithm.provider | name of the provider to use | no, defaults to null |
Since: Ant 1.6
Version: 2003-09-13
Method Summary | |
---|---|
String | getValue(File file)
Computes a value for a file content with the specified digest algorithm. |
void | initMessageDigest() Initialize the security message digest. |
boolean | isValid()
This algorithm doesn't need any configuration.
|
void | setAlgorithm(String algorithm)
Specifies the algorithm to be used to compute the checksum.
|
void | setProvider(String provider)
Sets the MessageDigest algorithm provider to be used
to calculate the checksum. |
String | toString()
Override Object.toString(). |
Parameters: file File object for which the value should be evaluated.
Returns: The value for that file
Returns: true if all is ok, otherwise false.
Parameters: algorithm the digest algorithm to use
Parameters: provider provider to use
Returns: some information about this algorithm.