|
Oracle Communications Services Gatekeeper Java API Reference 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ocsg.oauth2.util.OAuthUtil
Constructor Summary | |
OAuthUtil() |
Method Summary | |
static String |
bytes2Hex(byte[] bts) Convert byte array to string. |
static byte[] |
digestPassword(String password) |
static String |
generateUUID() Generate UUID. |
static String |
join(Collection s, String delimiter) Join collection of String. |
static String |
mapToString(Map map) encode a map into query string |
static String |
sha1(String source) Generate SHA-256 hash of a given string. |
static String |
sha256(String source) Generate SHA-256 hash of a given string. |
static Map |
string2Map(String str) parse a query string into map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OAuthUtil()
Method Detail |
public static String bytes2Hex(byte[] bts)
bts
- byte array.public static byte[] digestPassword(String password) throws Exception
Exception
public static String generateUUID()
public static String join(Collection s, String delimiter)
s
- the strings.delimiter
- delimiterpublic static String mapToString(Map map)
map
- the mappublic static String sha1(String source)
source
- given string.public static String sha256(String source)
source
- given string.public static Map string2Map(String str)
str
- string in http querystring format, e.g. a=1&b=2
|
Oracle Communications Services Gatekeeper Java API Reference 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |