The only other thing you need in your Door class is a way for your player to "see" if it is open:
Then, when touching door, you can determine whether you should be allowed to pass or not.
public boolean isOpen()
{
return open;
}

