public final class LockPatternChecker extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LockPatternChecker.OnCheckCallback
Interface for a callback to be invoked after security check.
|
static interface |
LockPatternChecker.OnVerifyCallback
Interface for a callback to be invoked after security verification.
|
Constructor and Description |
---|
LockPatternChecker() |
Modifier and Type | Method and Description |
---|---|
static AsyncTask<?,?,?> |
checkPassword(LockPatternUtils utils,
String password,
int userId,
LockPatternChecker.OnCheckCallback callback)
Checks a password asynchronously.
|
static AsyncTask<?,?,?> |
checkPattern(LockPatternUtils utils,
List<LockPatternView.Cell> pattern,
int userId,
LockPatternChecker.OnCheckCallback callback)
Checks a pattern asynchronously.
|
static AsyncTask<?,?,?> |
verifyPassword(LockPatternUtils utils,
String password,
long challenge,
int userId,
LockPatternChecker.OnVerifyCallback callback)
Verify a password asynchronously.
|
static AsyncTask<?,?,?> |
verifyPattern(LockPatternUtils utils,
List<LockPatternView.Cell> pattern,
long challenge,
int userId,
LockPatternChecker.OnVerifyCallback callback)
Verify a pattern asynchronously.
|
static AsyncTask<?,?,?> |
verifyTiedProfileChallenge(LockPatternUtils utils,
String password,
boolean isPattern,
long challenge,
int userId,
LockPatternChecker.OnVerifyCallback callback)
Verify a password asynchronously.
|
public static AsyncTask<?,?,?> verifyPattern(LockPatternUtils utils, List<LockPatternView.Cell> pattern, long challenge, int userId, LockPatternChecker.OnVerifyCallback callback)
utils
- The LockPatternUtils instance to use.pattern
- The pattern to check.challenge
- The challenge to verify against the pattern.userId
- The user to check against the pattern.callback
- The callback to be invoked with the verification result.public static AsyncTask<?,?,?> checkPattern(LockPatternUtils utils, List<LockPatternView.Cell> pattern, int userId, LockPatternChecker.OnCheckCallback callback)
utils
- The LockPatternUtils instance to use.pattern
- The pattern to check.userId
- The user to check against the pattern.callback
- The callback to be invoked with the check result.public static AsyncTask<?,?,?> verifyPassword(LockPatternUtils utils, String password, long challenge, int userId, LockPatternChecker.OnVerifyCallback callback)
utils
- The LockPatternUtils instance to use.password
- The password to check.challenge
- The challenge to verify against the pattern.userId
- The user to check against the pattern.callback
- The callback to be invoked with the verification result.public static AsyncTask<?,?,?> verifyTiedProfileChallenge(LockPatternUtils utils, String password, boolean isPattern, long challenge, int userId, LockPatternChecker.OnVerifyCallback callback)
utils
- The LockPatternUtils instance to use.password
- The password to check.challenge
- The challenge to verify against the pattern.userId
- The user to check against the pattern.callback
- The callback to be invoked with the verification result.public static AsyncTask<?,?,?> checkPassword(LockPatternUtils utils, String password, int userId, LockPatternChecker.OnCheckCallback callback)
utils
- The LockPatternUtils instance to use.password
- The password to check.userId
- The user to check against the pattern.callback
- The callback to be invoked with the check result.