question: public boolean authenticateDevice ( String uid , String key ) throws DataAccessException { DeviceInfo device = getDeviceInfo ( uid ) ; return device != null && key . equals ( device . getKey ( ) ) ; }
target:  Authenticates the given UID, Key combination. If the password in the item identified by the item name 'UID' matches the Key given then true is returned, false otherwise.