Package com.wowza.util
Class MD5DigestUtils
- Object
- 
- com.wowza.util.MD5DigestUtils
 
- 
 public class MD5DigestUtils extends ObjectMD5DigestUtils: MD5 hash utilities. 
- 
- 
Constructor SummaryConstructors Constructor Description MD5DigestUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgenerateAuth(String method, String uri, String username, String password, String realm, String nonce)Generate an HTTP authorization responsestatic StringgenerateAuth(String a2Hash, String a1Hash, String realm, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization responsestatic StringgenerateAuth(String method, String uri, String a1Hash, String realm, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization responsestatic StringgenerateAuth(String method, String uri, String username, String password, String realm, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization responsestatic StringgenerateAuthHTTP(String method, String uri, String a1Hash, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization responsestatic StringgenerateAuthHTTP(String method, String uri, String username, String password, String realm, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization responsestatic StringgenerateHash(String value)Generate MD5 hashstatic byte[]generateHashBytes(byte[] value)Generate MD5 hashstatic byte[]generateHashBytes(String value)Generate MD5 hashstatic booleanvalidate(String storedPassword, String username, String realm, String password)
 
- 
- 
- 
Method Detail- 
generateAuthpublic static String generateAuth(String method, String uri, String username, String password, String realm, String nonce)Generate an HTTP authorization response- Parameters:
- method- method
- uri- URI
- username- username
- password- password
- realm- realm
- nonce- nonce
- Returns:
- auth response
 
 - 
generateAuthpublic static String generateAuth(String method, String uri, String username, String password, String realm, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization response- Parameters:
- method- method
- uri- URI
- username- username
- password- password
- realm- realm
- nonce- nonce
- qop- qop
- nonceCount- nonceCount
- cnonce- cnonce
- Returns:
- auth response
 
 - 
generateAuthHTTPpublic static String generateAuthHTTP(String method, String uri, String username, String password, String realm, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization response- Parameters:
- method- method
- uri- URI
- username- username
- password- password
- realm- realm
- nonce- nonce
- qop- qop
- nonceCount- nonceCount
- cnonce- cnonce
- Returns:
- response
 
 - 
generateAuthHTTPpublic static String generateAuthHTTP(String method, String uri, String a1Hash, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization response- Parameters:
- method- The HTTP method
- uri- The URI
- a1Hash- The a1 hash
- nonce- nonce
- qop- qop
- nonceCount- nonceCount
- cnonce- cnonce
- Returns:
- response
 
 - 
generateAuthpublic static String generateAuth(String method, String uri, String a1Hash, String realm, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization response- Parameters:
- method- method
- uri- URI
- a1Hash- a1Hash
- realm- realm
- nonce- nonce
- qop- qop
- nonceCount- nonceCount
- cnonce- cnonce
- Returns:
- auth
 
 - 
generateAuthpublic static String generateAuth(String a2Hash, String a1Hash, String realm, String nonce, String qop, String nonceCount, String cnonce)Generate an HTTP authorization response- Parameters:
- a2Hash- a2Hash
- a1Hash- a1Hash
- realm- realm
- nonce- nonce
- qop- qop
- nonceCount- nonceCount
- cnonce- cnonce
- Returns:
- auth
 
 - 
generateHashBytespublic static byte[] generateHashBytes(byte[] value) Generate MD5 hash- Parameters:
- value- byte array to hash
- Returns:
- byte array result
 
 - 
generateHashBytespublic static byte[] generateHashBytes(String value) Generate MD5 hash- Parameters:
- value- in string converted to byte array (UTF-8)
- Returns:
- byte array result
 
 - 
generateHashpublic static String generateHash(String value) Generate MD5 hash- Parameters:
- value- in string converted to byte array (UTF-8)
- Returns:
- hash as binhex string
 
 - 
validatepublic static boolean validate(String storedPassword, String username, String realm, String password)
 
- 
 
-