Change PIN and Admin PIN after move to key operation

This commit is contained in:
Dominik Schürmann
2015-07-02 17:31:01 +02:00
parent 9fe05ed1e7
commit 195508ed92
13 changed files with 172 additions and 80 deletions

View File

@@ -117,6 +117,13 @@ public class Passphrase implements Parcelable {
}
}
/**
* Creates a new String from the char[]. This is considered unsafe!
*/
public String toStringUnsafe() {
return new String(mPassphrase);
}
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -127,11 +134,7 @@ public class Passphrase implements Parcelable {
}
Passphrase that = (Passphrase) o;
if (!Arrays.equals(mPassphrase, that.mPassphrase)) {
return false;
}
return true;
return Arrays.equals(mPassphrase, that.mPassphrase);
}
@Override