summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorEran Messeri <eranm@google.com>2020-10-27 08:36:11 +0000
committerEran Messeri <eranm@google.com>2020-11-12 12:47:11 +0000
commit1641c5c47e0a2a37d6b853e652a7661a2dd394ab (patch)
treeaf5ae0ab6bd35a0e68ce56aa40f71b585f61f328 /api
parent1a9bdc122f4e66863e32adc3c6b6f6b1dbb4fe37 (diff)
Implement setRequiredPasswordComplexity
Implement setRequiredPasswordComplexity and getRequiredPasswordComplexity, which enforce password requiremets according to one of four, platform-defined complexity levels. Start adjusting the platform to take the complexity into account: * isActivePasswordSufficient would return false if complexity is set but the current password does not meet the complexity criteria. * resetPasswordWithToken would not allow resetting the password to a value that does not meet the complexity criteria. Bug: 165573442 Test: atest FrameworksServicesTests:DevicePolicyManagerTest Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testResetPasswordWithToken Change-Id: I4e66af0b03c521de70bba3192751164736d01c62
Diffstat (limited to 'api')
-rw-r--r--api/current.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index 344e93baedf0..7df44ab9adef 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -6950,6 +6950,7 @@ package android.app.admin {
method @Nullable public java.util.List<java.lang.String> getPermittedCrossProfileNotificationListeners(@NonNull android.content.ComponentName);
method @Nullable public java.util.List<java.lang.String> getPermittedInputMethods(@NonNull android.content.ComponentName);
method public int getPersonalAppsSuspendedReasons(@NonNull android.content.ComponentName);
+ method public int getRequiredPasswordComplexity();
method public long getRequiredStrongAuthTimeout(@Nullable android.content.ComponentName);
method public boolean getScreenCaptureDisabled(@Nullable android.content.ComponentName);
method public java.util.List<android.os.UserHandle> getSecondaryUsers(@NonNull android.content.ComponentName);
@@ -7081,6 +7082,7 @@ package android.app.admin {
method public void setProfileEnabled(@NonNull android.content.ComponentName);
method public void setProfileName(@NonNull android.content.ComponentName, String);
method public void setRecommendedGlobalProxy(@NonNull android.content.ComponentName, @Nullable android.net.ProxyInfo);
+ method public void setRequiredPasswordComplexity(int);
method public void setRequiredStrongAuthTimeout(@NonNull android.content.ComponentName, long);
method public boolean setResetPasswordToken(android.content.ComponentName, byte[]);
method public void setRestrictionsProvider(@NonNull android.content.ComponentName, @Nullable android.content.ComponentName);