org.apache.cxf.common.util.crypto

## Class MessageDigestUtils

- java.lang.Object
- - org.apache.cxf.common.util.crypto.MessageDigestUtils

-     public final class MessageDigestUtils
      extends Object

  The utility Message Digest generator which can be used for generating random values

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `ALGO_MD5`
    `static String` | `ALGO_SHA_1`
    `static String` | `ALGO_SHA_256`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `createDigest(byte[] input, String algo)`
    `static byte[]` | `createDigest(String input, String algo)`
    `static String` | `generate(byte[] input)`
    `static String` | `generate(byte[] input, String algo)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### ALGO_SHA_1

          public static final String ALGO_SHA_1

      See Also:
        Constant Field Values

    - #### ALGO_SHA_256

          public static final String ALGO_SHA_256

      See Also:
        Constant Field Values

    - #### ALGO_MD5

          public static final String ALGO_MD5

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### generate

          public static String generate(byte[] input)

    - #### generate

          public static String generate(byte[] input,
                        String algo)

    - #### createDigest

          public static byte[] createDigest(String input,
                            String algo)

    - #### createDigest

          public static byte[] createDigest(byte[] input,
                            String algo)
                                     throws NoSuchAlgorithmException

      Throws:
        `NoSuchAlgorithmException`

Apache CXF