public class Hash extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ALGORITHM |
private MessageDigest |
hashDigest |
public static final String DEFAULT_ALGORITHM
private MessageDigest hashDigest
public Hash(String algorithm)
public Hash()
public String digest(byte[] message, Encoder encoder) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic String digest(String message, Encoder encoder) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic byte[] digest(byte[] message)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionCopyright © 2014 JBoss by Red Hat. All Rights Reserved.