移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

You are creating a Windows Communication Foundation (WCF) service to process orders.The data contract for the order is defined as follows:[DataContract]public class Order{ [DataMember] public string CardHolderName { get; set; } [DataMember] public string CreditCardNumber { get; set; }}You have the following requirements: Enable the transmission of the contents of Order from the clients to the service. Ensure that the contents of CreditCardNumber are not sent across the network in clear text. Ensure that the contents of CreditCardNumber are accessible by the service to process the order.You need to implement the service to meet these requirements. What should you do?()

发布日期:2021-03-17

You are creating a Windows Communication Foundatio...
A

Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.

B

Convert the DataContract to a MessageContract and set the ProtectionLevel property to SignAndEncrypt.

C

Change the data type of CreditCardNumber from string to SecureString.

D

Implement the CreditCardNumber property getter and setter In the setter, run the value of the CreditCardNumber through the MD5CryptoServiceProvider class TransformBlock method.

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!