Question: Assuming username and password authentication is in place, what method on the Authentication object can be used to obtain the username?

  1. getPrincipal
  2. getUsername
  3. getUser
  4. getDn

Answer: The correct answer of the above question is Option A:getPrincipal