Class JdbcGeneratedPasswordRepository
java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.social.JdbcGeneratedPasswordRepository
- All Implemented Interfaces:
GeneratedPasswordRepository
@Repository
public class JdbcGeneratedPasswordRepository
extends Object
implements GeneratedPasswordRepository
GeneratedPasswordRepository over the generated column of user_passwords. It joins the
transaction of its caller.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.jdbc.core.simple.JdbcClientJDBC client used to run the statements. -
Constructor Summary
Constructors -
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.
-
Field Details
-
jdbcClient
private final org.springframework.jdbc.core.simple.JdbcClient jdbcClientJDBC client used to run the statements.
-
-
Constructor Details
-
JdbcGeneratedPasswordRepository
public JdbcGeneratedPasswordRepository()
-
-
Method Details
-
markGenerated
Description copied from interface:GeneratedPasswordRepositoryMarks the password of an account as generated, that is, unknown to its owner.- Specified by:
markGeneratedin interfaceGeneratedPasswordRepository- Parameters:
userId- identifier of the account.
-
isGenerated
Description copied from interface:GeneratedPasswordRepositoryTells whether the password of an account is a generated one.- Specified by:
isGeneratedin interfaceGeneratedPasswordRepository- Parameters:
userId- identifier of the account.- Returns:
truewhen the account has no password its owner knows.
-