An Authentication Framework for Wearable Devices