Interface SignInMethodsLock
- All Known Implementing Classes:
JdbcSignInMethodsLock
public interface SignInMethodsLock
Port that serializes the removals of the sign-in methods of one account (unlinking an identity, unbinding a
certificate), so that two concurrent removals cannot each count the other's method as remaining and together leave
the account with no way to sign in.
-
Method Summary
-
Method Details
-
lock
Takes the lock of an account until the caller's transaction ends; a second caller for the same account waits.- Parameters:
userId- identifier of the account.
-