ClaimTypeRequirement クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
フェデレーション資格情報に表示されると予想される必須のクレームおよび省略可能なクレームの種類を指定します。
public ref class ClaimTypeRequirement
public class ClaimTypeRequirement
type ClaimTypeRequirement = class
Public Class ClaimTypeRequirement
- 継承
-
ClaimTypeRequirement
例
次のコードでは、2 種類のクレーム要件をセキュリティ バインディングに追加しています。
WSFederationHttpBinding binding = new WSFederationHttpBinding();
binding.Security.Message.ClaimTypeRequirements.Add
(new ClaimTypeRequirement
("http://schemas.microsoft.com/ws/2005/05/identity/claims/EmailAddress"));
binding.Security.Message.ClaimTypeRequirements.Add
(new ClaimTypeRequirement
("http://schemas.microsoft.com/ws/2005/05/identity/claims/UserName", true));
前述のコード例で使用される構成ファイルを次に示します。
<bindings>
<wsFederationHttpBinding>
<binding name="myFederatedBinding">
<security mode="Message">
<message issuedTokenType="urn:oasis:names:tc:SAML:1.0:assertion">
<claimTypeRequirements>
<add claimType="http://schemas.microsoft.com/ws/2005/05/identity/claims/EmailAddress"
isOptional="false" />
<add claimType="http://schemas.microsoft.com/ws/2005/05/identity/claims/UserName"
isOptional="true" />
</claimTypeRequirements>
</message>
</security>
</binding>
</wsFederationHttpBinding>
</bindings>
注釈
フェデレーション シナリオでは、サービスが受信資格情報についての要件を記述します。 たとえば、受信資格情報は、特定のクレーム タイプのセットを処理する必要があります。 この要件はセキュリティ ポリシー内に明記されます。 クライアントは、セキュリティ トークン サービス (CardSpace など) からセキュリティ トークンを要求すると、要件をトークン要求に入れて、その要件を満たすセキュリティ トークンをセキュリティ トークン サービスが発行できるようにします。
コンストラクター
| ClaimTypeRequirement(String) |
指定した種類の必須のクレームの ClaimTypeRequirement クラスの新しいインスタンスを初期化します。 |
| ClaimTypeRequirement(String, Boolean) |
指定した種類のクレームの ClaimTypeRequirement クラスの新しいインスタンスを初期化します。 |
プロパティ
| ClaimType |
コンストラクターで指定されたクレームの種類を取得します。 |
| IsOptional |
クレームが省略可能かどうかを示す値を取得します。 |
メソッド
| Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。 (継承元 Object) |
| GetHashCode() |
既定のハッシュ関数として機能します。 (継承元 Object) |
| GetType() |
現在のインスタンスの Type を取得します。 (継承元 Object) |
| MemberwiseClone() |
現在の Object の簡易コピーを作成します。 (継承元 Object) |
| ToString() |
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |