Patent attributes
A method and a system for locking an electronic device are provided. In one aspect, a method in an electronic device is provided comprising the steps of receiving, through a user input interface of the device when the device is in a locked state, a challenge response and a temporary automatic lock time indicator, and if the challenge response is accepted, unlocking the device, setting an automatic lock timer of the device to a temporary lock time value, and starting the automatic lock timer. In another aspect, an electronic device is provided for implementing the above method. According to another aspect, a locking mechanism is provided that utilizes information on an environment of the electronic device. According to another aspect, a stimulus based locking mechanism is provided that employs a different lock time after the device has issued a stimulus in response to an event on the device.