MessageDigest that does not make use
of ThreadLocal and - broadly - only creates enough MessageDigest objects
to satisfy the concurrency requirements.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Map | |
| private static final String | |
| private static final StringManager |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | |
| public static byte[] | |
| public static byte[] | |
| public static byte[] | |
| public static void | init(String
The message digest algorithm to be supported algorithm)Ensures that |
| MD5 | back to summary |
|---|---|
| private static final String MD5 | |
| queues | back to summary |
|---|---|
| private static final Map<String, Queue<MessageDigest>> queues | |
| SHA1 | back to summary |
|---|---|
| private static final String SHA1 | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| ConcurrentMessageDigest | back to summary |
|---|---|
| private ConcurrentMessageDigest() | |
| digest | back to summary |
|---|---|
| public static byte[] digest(String algorithm, byte[]... input) | |
| digest | back to summary |
|---|---|
| public static byte[] digest(String algorithm, int iterations, byte[]... input) | |
| digestMD5 | back to summary |
|---|---|
| public static byte[] digestMD5(byte[]... input) | |
| digestSHA1 | back to summary |
|---|---|
| public static byte[] digestSHA1(byte[]... input) | |
| init | back to summary |
|---|---|
| public static void init(String algorithm) throws NoSuchAlgorithmException Ensures that
| |