Rewrite notes to acknowledge wipe-after-bad-passwords
It turns out that we have already implemented the built-in version of local-wipe-after-failed-passwords, and the notes about it were not necessary. It should be possible to connect to an account with local wipe requirements and see proper operation.
This commit is contained in:
parent
189c22a045
commit
5893e9e008
@ -43,8 +43,6 @@ import android.net.Uri;
|
|||||||
* TODO: When accounts are deleted, reduce policy and/or give up admin status
|
* TODO: When accounts are deleted, reduce policy and/or give up admin status
|
||||||
* TODO: Provide a way to check for policy issues at synchronous times such as entering
|
* TODO: Provide a way to check for policy issues at synchronous times such as entering
|
||||||
* message list or folder list.
|
* message list or folder list.
|
||||||
* TODO: Implement local wipe after failed passwords
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class SecurityPolicy {
|
public class SecurityPolicy {
|
||||||
|
|
||||||
@ -630,6 +628,8 @@ public class SecurityPolicy {
|
|||||||
/**
|
/**
|
||||||
* Device Policy administrator. This is primarily a listener for device state changes.
|
* Device Policy administrator. This is primarily a listener for device state changes.
|
||||||
* Note: This is instantiated by incoming messages.
|
* Note: This is instantiated by incoming messages.
|
||||||
|
* Note: We do not implement onPasswordFailed() because the default behavior of the
|
||||||
|
* DevicePolicyManager - complete local wipe after 'n' failures - is sufficient.
|
||||||
*/
|
*/
|
||||||
public static class PolicyAdmin extends DeviceAdmin {
|
public static class PolicyAdmin extends DeviceAdmin {
|
||||||
|
|
||||||
@ -656,13 +656,5 @@ public class SecurityPolicy {
|
|||||||
public void onPasswordChanged(Context context, Intent intent) {
|
public void onPasswordChanged(Context context, Intent intent) {
|
||||||
SecurityPolicy.getInstance(context).clearAccountHoldFlags();
|
SecurityPolicy.getInstance(context).clearAccountHoldFlags();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Called after the user has failed at entering their current password.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public void onPasswordFailed(Context context, Intent intent) {
|
|
||||||
// do something
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user