boolean login() throws LoginException. Method to authenticate a Subject (phase 1). The implementation of this method authenticates a Subject . For example, it .