public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytes2HexString(byte[] bytes)
Converts an array of bytes to a string of two digits hex-representations
|
static byte[] |
createRandomBytes(int length) |
static String |
createRandomString(int length) |
static String |
createURN5() |
static String |
formatDate(Date date) |
static String |
replaceSlashWithHyphen(String origin)
replaces slashes with hyphens and removes padding=
|
static String |
sha1(String s) |
public static String createRandomString(int length)
public static String createURN5()
public static String replaceSlashWithHyphen(String origin)
origin - public static byte[] createRandomBytes(int length)
public static String bytes2HexString(byte[] bytes)
bytes - Copyright © 2014. All Rights Reserved.