Lines Matching refs:password
209 = { "password", "default", "pattern", "pin" };
2207 private String toHex(String password) {
2208 if (password == null) {
2211 byte[] bytes = password.getBytes(StandardCharsets.UTF_8);
2229 public int decryptStorage(String password) {
2230 if (TextUtils.isEmpty(password)) {
2231 throw new IllegalArgumentException("password cannot be empty");
2245 event = mConnector.execute("cryptfs", "checkpw", new SensitiveArg(toHex(password)));
2269 public int encryptStorage(int type, String password) {
2270 if (TextUtils.isEmpty(password) && type != StorageManager.CRYPT_TYPE_DEFAULT) {
2271 throw new IllegalArgumentException("password cannot be empty");
2285 new SensitiveArg(toHex(password)));
2294 /** Set the password for encrypting the master key.
2296 * @param password The password to set.
2298 public int changeEncryptionPassword(int type, String password) {
2305 Slog.i(TAG, "changing encryption password...");
2310 new SensitiveArg(toHex(password)));
2319 * Validate a user-supplied password string with cryptfs
2322 public int verifyEncryptionPassword(String password) throws RemoteException {
2331 if (TextUtils.isEmpty(password)) {
2332 throw new IllegalArgumentException("password cannot be empty");
2338 Slog.i(TAG, "validating encryption password...");
2343 event = mConnector.execute("cryptfs", "verifypw", new SensitiveArg(toHex(password)));