PrepAway - Latest Free Exam Questions & Answers

How should you complete the method?

HOTSPOT
You are developing a Universal Windows Platform (UWP) app that stores credentials by using the Credential
Locker service.
You need to securely retrieve credentials for the current user.
How should you complete the method? To answer, select the appropriate code segment from each list in the answer area.
Hot Area:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
Box 1:
Example:
var vault = new Windows.Security.Credentials.PasswordVault();
Box 2:
Example continued:
// When there are multiple usernames,
// retrieve the default username. If one doesn’t
// exist, then display UI to have the user select
// a default username.
defaultUserName = GetDefaultUserNameUI();
credential = vault.Retrieve(resourceName, defaultUserName);
https://docs.microsoft.com/en-us/windows/uwp/security/credential-locker


Leave a Reply