搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【多项选择题】

You are developing a Windows Communication Foundation (WCF) service that returns location information<br /> for authorized law enforcement agencies. The service contract is as follows:<br /> [ServiceContract]<br /> public interface IMappingService<br /> {<br /> [OperationContract]<br /> long[] GetLocationCoordinates(String cityName);<br /> [OperationContract]<br /> long[] GetLocationOfCitizen(String ssn);<br /> }<br /> Users are authenticated and impersonated. The system uses ASP.NET roles.<br /> The members of law enforcement are members of the LawEnforcement role.<br /> You need to ensure that only members of the LawEnforcement role can call these methods.<br /> What are two possible ways to achieve this goal?() (Each correct answer presents a complete solution. Choose two.)&nbsp;<p> You are developing a Windows Communication Foundation (WCF) service that returns location information<br /> for authorized law enforcement agencies. The service contract is as follows:<br /> [ServiceCont

A、A. Add a PrincipalPermissionAttribute to each method that should be available only to members of law enforcement. Set its SecurityAction to Demand and set the role equal to LawEnforcement.

B、B. Use the CurrentPrincipal property of the thread. Call the IsInRole method specifying LawEnforcement as a parameter.

C、C. Create a GenericPrincipal specifying Thread.CurrentPrincipal.Identity as the IIdentityParameter and LawEnforcement as the only value for the Roles parameter.

D、D. At the beginning of each method, enumerate each ClaimSet in a new WindowsClaimSet. Use the FindClaims method to locate a claim type named Role with a right named LawEnforcement.

更多“You are developing a Windows Communication Foundation (WCF) service that returns location information<br /> for authorized law enforcement agencies. The service contract is as follows:<br /> [ServiceContract]<br /> public interface IMappingService<br /> {<br /> [OperationContract]<br /> long[] GetLocationCoordinates(String cityName);<br /> [OperationContract]<br /> long[] GetLocationOfCitizen(String ssn);<br /> }<br /> Users are authenticated and impersonated. The system uses ASP.NET roles.<br /> The members of law enforcement are members of the LawEnforcement role.<br /> You need to ensure that only members of the LawEnforcement role can call these methods.<br /> What are two possible ways to achieve this goal?() (Each correct answer presents a complete solution. Choose two.)&nbsp;<p> You are developing a Windows Communication Foundation (WCF) service that returns location information<br /> for authorized law enforcement agencies. The service contract is as follows:<br /> [ServiceCont”相关的问题
第7题

AA. Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.  B、B. Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.  C、C. Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.  D、D. Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服