您正在编写代码的用户身份验证和授权。 在您的应用程序数据存储区中存储的用户名、 密码和角色。 您需要建立用户的安全上下文将用于授权检查,如 IsInRole。 您编写下面的代码段,授权用户。() if (!TestPassword(userName, password)) throw new Exception("could not authenticate user"); String[] userRolesArray = LookupUserRoles(userName);

A .https://assets.asklib.com/images/image2/2018072714051478834.jpg B .https://assets.asklib.com/images/image2/2018072714051762657.jpg C .https://assets.asklib.com/images/image2/2018072714052068043.jpg D .https://assets.asklib.com/images/image2/2018072714052350832.jpg

时间:2022-11-02 16:53:46 所属题库:MCPD(70-536)题库

相似题目