Question: Assuming username and password authentication is in place, what method on the Authentication object can be used to obtain the username?
- getPrincipal
- getUsername
- getUser
- getDn
Answer: The correct answer of the above question is Option A:getPrincipal