com.funambol.syncclient.common
Class DeviceTools

java.lang.Object
  extended by com.funambol.syncclient.common.DeviceTools

public class DeviceTools
extends java.lang.Object

This class supplies a method for the creation of a device id based on host address/name and username.

Version:
$Id: DeviceTools.java,v 1.4 2008-01-02 19:24:54 nichele Exp $

Constructor Summary
DeviceTools()
           
 
Method Summary
static java.lang.String createDeviceID(java.lang.String prefix, java.lang.String defaultValue)
          Creates a device id as prefix + B64(MD5(hostName:hostAddress:userName))
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceTools

public DeviceTools()
Method Detail

createDeviceID

public static java.lang.String createDeviceID(java.lang.String prefix,
                                              java.lang.String defaultValue)
Creates a device id as prefix + B64(MD5(hostName:hostAddress:userName))

Parameters:
prefix - the device id prefix
defaultValue - the default value
Returns:
device id as B64(MD5(hostName:hostAddress:userName)) or the default value if there are errors retrieving host address/name


Copyright © 2010 Funambol. All Rights Reserved.