Interface GeneratedPasswordRepository
- All Known Implementing Classes:
JdbcGeneratedPasswordRepository
public interface GeneratedPasswordRepository
Port that remembers which accounts only hold a password the server generated and nobody knows: the accounts
created by the first sign-in with an external provider. Every account row carries a password hash, so without this
mark a provisioned account would count as having a password sign-in method. Setting a password (registration, reset
or change) clears the mark. It never returns
null.-
Method Summary
Modifier and TypeMethodDescriptionbooleanisGenerated(UUID userId) Tells whether the password of an account is a generated one.voidmarkGenerated(UUID userId) Marks the password of an account as generated, that is, unknown to its owner.
-
Method Details
-
markGenerated
Marks the password of an account as generated, that is, unknown to its owner.- Parameters:
userId- identifier of the account.
-
isGenerated
Tells whether the password of an account is a generated one.- Parameters:
userId- identifier of the account.- Returns:
truewhen the account has no password its owner knows.
-