| Modifier and Type | Field and Description |
|---|---|
| private static final FastThreadLocal | |
| private static final FastThreadLocal |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | Returns: An encoded string containing the dataThe data to encode data)Performs base64 encoding on the specified data |
| pack-priv static int | |
| private static byte[] | |
| pack-priv static byte[] | |
| pack-priv static byte[] | Returns: An array of random bytesthe number of random bytes to create size)Creates an arbitrary number of random bytes |
| pack-priv static int | Returns: A pseudo-random numberThe minimum allowable value minimum, int The maximum allowable value maximum)Generates a pseudo-random number |
| pack-priv static byte[] | Returns: The hashed dataThe data to hash data)Performs a SHA-1 hash on the specified data |
| MD5 | back to summary |
|---|---|
| private static final FastThreadLocal<MessageDigest> MD5 | |
| SHA1 | back to summary |
|---|---|
| private static final FastThreadLocal<MessageDigest> SHA1 | |
| WebSocketUtil | back to summary |
|---|---|
| private WebSocketUtil() A private constructor to ensure that instances of this class cannot be made | |
| base64 | back to summary |
|---|---|
| pack-priv static String base64(byte[] data) Performs base64 encoding on the specified data
| |
| byteAtIndex | back to summary |
|---|---|
| pack-priv static int byteAtIndex(int mask, int index) | |
| digest | back to summary |
|---|---|
| private static byte[] digest(FastThreadLocal<MessageDigest> digestFastThreadLocal, byte[] data) | |
| md5 | back to summary |
|---|---|
| pack-priv static byte[] md5(byte[] data) Performs a MD5 hash on the specified data
| |
| randomBytes | back to summary |
|---|---|
| pack-priv static byte[] randomBytes(int size) Creates an arbitrary number of random bytes
| |
| randomNumber | back to summary |
|---|---|
| pack-priv static int randomNumber(int minimum, int maximum) Generates a pseudo-random number
| |
| sha1 | back to summary |
|---|---|
| pack-priv static byte[] sha1(byte[] data) Performs a SHA-1 hash on the specified data
| |