单项选择题
You are developing a Windows Communication Foundation (WCF) service. One of the parameters used with the service operations is a security token. The security token is not sensitive. The monitoring software tracks security tokens and can read tokens in clear text only.The company security policy requires that you validate all clear text data passed over the corporate network.You need to ensure that the service verifies that the security token is not changed during transit.
What should you do?()
A. For all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to EncryptAndSign.
B. Implement IEndpointldentityProvider in the message contract class.
C. Implement ISecureConversationSession in the message contract class.
D. For all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to Sign.
相关考题
-
单项选择题
You develop a Windows Communication Foundation (WCF) service that uses basic authentication for client credentials. This service is currently configured to use message security. The service is hosted on a server in workgroup mode.Users report that their passwords are stolen when they use public computers.You need to ensure that messages are secure and users are authenticated.You prevent the service from being called over HTTP through Microsoft Internet Information Services (IIS) configuration. What should you do next?()
A. Use the transport security mode and specify None for transport client credential type.
B. Use the transportWithMessageCredential security mode and specify Basic for the transport client credential type.
C. Use the message security mode and specify Basic for the transport client credential type.
D. Use the transportWithMessageCredential security mode and specify None for the transport client credential type. -
单项选择题
You are developing a Windows Communication Foundation (WCF) service to provide an in-memory cache for many Web applications.The service contract is defined as follows. (Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IDataCache 03 { 04 ... 05 }06 07 08 public class DataCache : IDataCache 09 { 10 ... 11 } You need to ensure that all users share the cache. Which code segment should you insert at line 07?()
A. [ServiceBehavior(TransactionIsolationLevel = IsolationLevel.RepeatableRead)]
B. [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
C. [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
D. [ServiceBehavior(TransactionIsolationLevel = IsolationLevel.ReadComitted)] -
单项选择题
You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.The Windows Service class will inherit from ServiceBase.You need to ensure that the WCF service starts when the Windows Service is restarted. What should you do in the Windows Service class?()
A.
B.
C.
D.
