Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60df33da authored by Andrew Scull's avatar Andrew Scull
Browse files

Explain the IAE thrown by resetPassword.

DevicePolicyManager.resetPassword can throw an IllegalArgumentException
which is now documented.

Bug: 30105812
Change-Id: Ied02a0586ad62cca636c46da4faa16df64e17e5a
parent 83ab8541
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2219,6 +2219,7 @@ public class DevicePolicyManager {
     * @throws SecurityException if the calling application does not own an active administrator
     * @throws SecurityException if the calling application does not own an active administrator
     *             that uses {@link DeviceAdminInfo#USES_POLICY_RESET_PASSWORD}
     *             that uses {@link DeviceAdminInfo#USES_POLICY_RESET_PASSWORD}
     * @throws IllegalStateException if the calling user is locked or has a managed profile.
     * @throws IllegalStateException if the calling user is locked or has a managed profile.
     * @throws IllegalArgumentException if the password does not meet system requirements.
     */
     */
    public boolean resetPassword(String password, int flags) {
    public boolean resetPassword(String password, int flags) {
        throwIfParentInstance("resetPassword");
        throwIfParentInstance("resetPassword");