Blaine Olin
Mar 15, 2018
11:25 am

KNOX SDK - Is resetPassword Still Available?

Hello,

When using the legacy KNOX Standard SDK, I was able to essentially clear the device's password by calling resetPassword as shown below

EnterpriseDeviceManager edm = EnterpriseDeviceManager.getInstance(context);
edm.getBasePasswordPolicy().resetPassword("",0);

 

However, in KNOX SDK 3.1 the resetPassword is no longer accessible in this manner. A resetPassword method exists in the BasePasswordPolicy in the KnoxContainerManager. But that sounds like it only resets the password for a container. What I'm looking for is how to reset the password on a device on which no container is programmatically setup.

 

Does a method exist for this functionality?

 

Thanks,

Blaine

 

EDIT: After reading over the documentation some more, I realize I may not understand the purpose of the resetPassword method I had previously been using in the legacy SDK.

I read in the documentation that resetPassword will "Force a new container unlock password (the password needed to access the container, not for individual accounts) on the user".

Does this in fact mean that the resetPassword shown in the code above does not affect the device password, but the default container password?

Similar topics

No similar topics found.
Samuel Goldwax
Selected Answer
Mar 16, 2018
5:04 pm

Hi Blaine,

As per the documentation, that API is only for password reset of a container. For the device itself, try the enforcePwdChange method.

Thanks,

Sam

Comments

Thank you very much!

Blaine OlinMar 20, 2018 at 1:25 pm