Class KeyGen
java.lang.Object
com.emc.documentum.rest.common.key.KeyGen
An utility to make keys and digests for input objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringmakeDigest(Object... input) Make a digest for input objects.static StringmakeGenericCacheKey(Object... input) Make a distinct key for input objects.static StringmakeUserCacheKey(String repositoryName, String user, Object password, Object... misc) Make a distinct key for input credential.static StringMake a MD5 digest for a password object.
-
Method Details
-
makeUserCacheKey
public static String makeUserCacheKey(String repositoryName, String user, Object password, Object... misc) Make a distinct key for input credential. The key text may expose the plain text of the original input except the password.- Parameters:
repositoryName- the repository nameuser- the user login namepassword- the user passwordmisc- other login parameters- Returns:
- the key text
-
makeGenericCacheKey
Make a distinct key for input objects. The key text may expose the plain text of the origin input.- Parameters:
input- objects to make the key- Returns:
- the key text
-
makeDigest
Make a digest for input objects.- Parameters:
input- objects to make the digest- Returns:
- digest text
-
md5Encode
Make a MD5 digest for a password object.- Parameters:
password- password object- Returns:
- MD5 digest text
-