SEC-2012: Javadoc for UserDetails.getPassword() says that the password is never null; however it may be #2238
Labels
in: docs
An issue in Documentation or samples
type: bug
A general bug
type: jira
An issue that was migrated from JIRA
Milestone
Mauro Molinari (Migrated from SEC-2012) said:
The Javadoc for
org.springframework.security.core.userdetails.UserDetails.getPassword()
says:However, if the concrete implementation of
UserDetails
also implementsorg.springframework.security.core.CredentialsContainer
(and this is the case fororg.springframework.security.core.userdetails.User
, for instance), then the password may actually be null if the credentials have been deleted by a call toorg.springframework.security.core.CredentialsContainer.eraseCredentials()
. Seeorg.springframework.security.core.userdetails.User.eraseCredentials()
, for instance.The text was updated successfully, but these errors were encountered: