In a Spring Security application, you need to implement a feature where the users' passwords must be rotated every 30 days. How would you approach implementing this feature while maintaining a high level of security?

  • Implementing a scheduled task to periodically check and rotate passwords
  • Implementing a secure password policy and scheduled password rotation task
  • Storing password expiration dates in plaintext in the database
  • Using a weak hashing algorithm for password storage
To implement password rotation while maintaining security, you should follow best practices like using a strong hashing algorithm, enforcing a secure password policy, and implementing a scheduled task to rotate passwords. Storing expiration dates in plaintext or using weak hashing would compromise security.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *