org.realtor.rets.util
Class MD5Util

java.lang.Object
  |
  +--org.realtor.rets.util.MD5Util

public class MD5Util
extends java.lang.Object

Version:
1.0

Constructor Summary
MD5Util()
          Creates new MD5Util
 
Method Summary
private static java.lang.String convertToHex(byte[] source)
          Returns the HEX representation of a byte array
static java.lang.String getDigestAsHexString(byte[] source)
          returns MD5 HEX value for a given a byte array
static java.lang.String getDigestAsHexString(java.lang.String source)
          returns MD5 HEX value for a given string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5Util

public MD5Util()
Creates new MD5Util

Method Detail

getDigestAsHexString

public static java.lang.String getDigestAsHexString(java.lang.String source)
returns MD5 HEX value for a given string

Parameters:
source - string to convert

getDigestAsHexString

public static java.lang.String getDigestAsHexString(byte[] source)
returns MD5 HEX value for a given a byte array

Parameters:
source - byte array to convert

convertToHex

private static java.lang.String convertToHex(byte[] source)
Returns the HEX representation of a byte array

Parameters:
source - byte array to convert to HEX


Copyright © 2002 National Association of Realtors - All Rights Reserved.