You are creating a client application by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation (WCF) to create the application. The client application uses a Personal Information Card to provide authentication information to the WCF server. You write the following code fragment. (Line numbers are included for reference only.)
01 <wsFederationHttpBinding>
02 <binding name=”requireCardSpace”>
03 <security mode=”Message”>
04 <message >
06 </message>
07 </security>
08 </binding>
09 </wsFederationHttpBinding>
You need to ensure that one of the claims in the Personal Information Card contains an e-mail address. Which code fragment should you insert at line 05?
A.
<claimTypeRequirements>
<add claimType=”http: //schemas.xmlsoap.org/ws/2005/05/ identity/claims/emailaddress” isOptional=”false”/>
</claimTypeRequirements>
<issuer address=”http: //schemas.xmlsoap.org/ws/2005/05/identity/issuer/personal”/>
B.
<claimTypeRequirements>
<add claimType=”http: //schemas.xmlsoap.org/ws/2005/05/ identity/claims/emailaddress”/>
</claimTypeRequirements>
<issuer address=”http://schemas.xmlsoap.org/ws/2005/05/identity/issuer/personal”/>
C.
<claimTypeRequirements>
<add claimType=”http: //schemas.xmlsoap.org/ws/2005/05/ identity/claims/emailaddress”/>
</claimTypeRequirements>
<issuer address=”http://schemas.xmlsoap.org/ws/2005/05/identity/issuer/managed”/>
D.
<claimTypeRequirements>
<add claimType=”http: //schemas.xmlsoap.org/ws/2005/05/ identity/claims/emailaddress” isOptional=”false”/>
</claimTypeRequirements>
<issuer address=”http: //schemas.xmlsoap.org/ws/2005/05/identity/issuer/self”/>
Explanation:
<bindings>
<wsFederationHttpBinding>
<binding name=”wsFed”>
<security mode=”Message”>
<message issuedTokenType=”http://docs.oasis-open.org/wss/oasis-
wss-saml-token-profile-1.1#SAMLV1.1″ negotiateServiceCredential=”false” >
<claimTypeRequirements>
<add claimType=”http://schemas.xmlsoap.org/
ws/2005/05/identity/claims/privatepersonalidentifier”
isOptional=”false”/>
<add claimType=”http://schemas.xmlsoap.org/
ws/2005/05/identity/claims/emailaddress” isOptional=”false”/>
</claimTypeRequirements>
<issuer address=
“http://schemas.xmlsoap.org/ws/2005/05/identity/issuer/self” />
</message>
</security>
</binding>
</wsFederationHttpBinding>
</bindings>http://msdn.microsoft.com/en-us/magazine/cc163434.aspx
http://msdn.microsoft.com/en-us/library/system.servicemodel.security.tokens.claimtyperequirement(VS.90).aspx
http://msdn.microsoft.com/en-us/library/ms731374.aspx