Notify the user if passwords are not stored in keepass?

Answered

I want to check programatically if the user hasn't selected “keepass” in settings→password and notify the user accordingly. If I can change that setting programatically with the consent of the user, that would be even better. 

please help. 

0
5 comments

Please share what effort you made to solve this problem.

0

Hi, I was able to get the default and supported providerType using CredentialStoreManager but unable to get if the KeePass is selected as ProviderType in the settings. Please help if it is possible.

CredentialStoreManager.Companion.getInstance().defaultProvider();
CredentialStoreManager.Companion.getInstance().availableProviders();

0

I explored “PasswordSafeSettings” as per your recommendation but wasn't able to find any solutions for my problem. I am still working on it as of now. 

0

Using, 

CredentialStoreManager.Companion.getInstance().defaultProvider();
CredentialStoreManager.Companion.getInstance().availableProviders();

 I am able to get the default providers and available providers, but not the ones selected by the user. 

0

Okay, we got it. 


PasswordSafeSettings ps = ApplicationManager.getApplication().getService(PasswordSafeSettings.class);
ProviderType f = ps.getProviderType();
0

Please sign in to leave a comment.