public final class WsUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
base64(byte[] data)
Performs base64 encoding on the specified data
|
static byte[] |
randomBytes(int size)
Creates an arbitrary number of random bytes
|
static int |
randomNumber(int minimum,
int maximum)
Generates a pseudo-random number
|
static byte[] |
sha1(byte[] data)
Performs a SHA-1 hash on the specified data
|
public static byte[] sha1(byte[] data)
data - The data to hashpublic static java.lang.String base64(byte[] data)
data - The data to encodepublic static byte[] randomBytes(int size)
size - the number of random bytes to createpublic static int randomNumber(int minimum,
int maximum)
minimum - The minimum allowable valuemaximum - The maximum allowable value