Lines Matching refs:userId
35 public void addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) {
36 getUserAuth(userId).add(new Pair<>(token, secret));
39 public void fixateNewestUserKeyAuth(int userId) {
40 ArrayList<Pair<byte[], byte[]>> auths = mAuth.get(userId);
46 private ArrayList<Pair<byte[], byte[]>> getUserAuth(int userId) {
47 if (!mAuth.containsKey(userId)) {
50 mAuth.put(userId, auths);
52 return mAuth.get(userId);
55 public byte[] getUserUnlockToken(int userId) {
56 ArrayList<Pair<byte[], byte[]>> auths = getUserAuth(userId);
63 public void unlockUser(int userId, byte[] secret, IProgressListener listener)
65 listener.onStarted(userId, null);
66 listener.onFinished(userId, null);
67 ArrayList<Pair<byte[], byte[]>> auths = getUserAuth(userId);