How do you design a java interface that includes the following methds: setKey, lock, unlock, and locked. The setKey method establishes the key. The setKey, lock, and unlock methods take an integer parameter that represents the key. The lock and unlock methods lock and unlock the object, but only if the key passed in is correct. The locked method returns a boolean that indicates whether or not the object is locked.