Utility class to create a SHA1 hex string.
List of all members.
Public Member Functions |
| | Sha1Hash () |
| Sha1Hash | update (byte[] input) throws IllegalStateException |
| String | hexString () |
| | digests the data, resets, and returns a hex string hash
|
| byte[] | digest () throws IllegalStateException |
| | digests the data, resets, and returns 40 byte hash
|
Static Public Member Functions |
| static String | convertToHexString (byte[] data) |
| | convert a byte array to a hex string
|
| static void | main (final String[] args) |
Protected Attributes |
| MessageDigest | m_digester |
Constructor & Destructor Documentation
Member Function Documentation
| static String convertToHexString |
( |
byte[] |
data | ) |
[static] |
| byte [] digest |
( |
| ) |
throws IllegalStateException |
- Returns:
- Exceptions:
-
| IllegalStateException | if MessageDigest was unable to be initialized |
| static void main |
( |
final String[] |
args | ) |
[static] |
| Sha1Hash update |
( |
byte[] |
input | ) |
throws IllegalStateException |
- Parameters:
-
- Exceptions:
-
| IllegalStateException | if MessageDigest was unable to be initialized |
Member Data Documentation
The documentation for this class was generated from the following file: