RolePrincipal クラス
定義
ロール メンバーシップを含む現在の HTTP 要求のセキュリティ情報を表します。Represents security information for the current HTTP request, including role membership. このクラスは継承できません。This class cannot be inherited.
public ref class RolePrincipal : System::Security::Claims::ClaimsPrincipal, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class RolePrincipal : System.Security.Claims.ClaimsPrincipal, System.Runtime.Serialization.ISerializable
type RolePrincipal = class
inherit ClaimsPrincipal
interface ISerializable
Public Class RolePrincipal
Inherits ClaimsPrincipal
Implements ISerializable
- 継承
-
RolePrincipal
- 属性
- 実装
注釈
オブジェクトRolePrincipalはIPrincipalインターフェイスを実装し、HTTP 要求の現在のセキュリティコンテキストを表します。The RolePrincipal object implements the IPrincipal interface and represents the current security context for the HTTP request.
ロール管理が有効になってRolesいる場合 ( RoleManagerModule 「」 RolePrincipalを参照)、はオブジェクトCurrentをのUserプロパティHttpContextに割り当てます。When role management is enabled (see Roles), the RoleManagerModule assigns a RolePrincipal object to the User property of the CurrentHttpContext.
クラスRolePrincipalは、現在の HTTP 要求のセキュリティ id を公開し、さらにロールのメンバーシップの確認を実行します。The RolePrincipal class exposes the security identity for the current HTTP request and additionally performs checks for role membership. がCacheRolesInCookieのtrue
場合、オブジェクトRolePrincipalはキャッシュされたロールの一覧を管理し、最初にキャッシュされたリスト内の現在のユーザーのProviderロールメンバーシップを検索してから、ロールを検索します。If CacheRolesInCookie is true
, then the RolePrincipal object manages the cached list of roles and looks up role membership for the current user in the cached list first, then the role Provider. RolePrincipalがCacheRolesInCookie のfalse
場合、オブジェクトは常にロールプロバイダーを使用してロールのメンバーシップを検索します。If CacheRolesInCookie is false
, the RolePrincipal object always looks up role membership using the role provider.
オブジェクトRolePrincipalは、に基づいCookieProtectionValueて、 CookieNameによって識別されるクッキーにキャッシュされたロール情報を暗号化および復号化します。The RolePrincipal object encrypts and decrypts role information cached in the cookie identified by the CookieName based on the CookieProtectionValue.
コンストラクター
RolePrincipal(IIdentity) |
指定された |
RolePrincipal(IIdentity, String) |
指定された |
RolePrincipal(SerializationInfo, StreamingContext) |
指定された RolePrincipal オブジェクトに格納されている情報、および指定されたストリーミング コンテキストを使用して、SerializationInfo クラスの新しいインスタンスを初期化します。Initializes a new instance of the RolePrincipal class using information that is contained in the specified SerializationInfo object and using the specified streaming context. |
RolePrincipal(String, IIdentity) |
指定した |
RolePrincipal(String, IIdentity, String) |
指定された |
プロパティ
CachedListChanged |
RolePrincipal オブジェクトによってキャッシュされたロール名の一覧が変更されているかどうかを示す値を取得します。Gets a value indicating whether the list of role names cached with the RolePrincipal object has been modified. |
CookiePath |
キャッシュされているロール名のクッキーへのパスを取得します。Gets the path for the cached role names cookie. |
Expired |
ロール クッキーの有効期限が切れているかどうかを示す値を取得します。Gets a value indicating whether the roles cookie has expired. |
ExpireDate |
ロール クッキーの有効期限が切れる日時を取得します。Gets the date and time when the roles cookie will expire. |
Identity |
現在の HTTP 要求のセキュリティ ID を取得します。Gets the security identity for the current HTTP request. |
IsRoleListCached |
ユーザーのロールの一覧がクッキーにキャッシュされているかどうかを示す値を取得します。Gets a value indicating whether the list of roles for the user has been cached in a cookie. |
IssueDate |
ロール クッキーが発行された日時を取得します。Gets the date and time that the roles cookie was issued. |
ProviderName |
ユーザーのロール情報を保存および取得するロール プロバイダーの名前を取得します。Gets the name of the role provider that stores and retrieves role information for the user. |
Version |
ロール クッキーのバージョン番号を取得します。Gets the version number of the roles cookie. |
メソッド
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判定します。Determines whether the specified object is equal to the current object. (継承元 Object) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetObjectData(SerializationInfo, StreamingContext) |
SerializationInfo オブジェクトに、指定されたストリーミング コンテキストを使用してターゲット オブジェクトをシリアル化するために必要なデータを設定します。Populates a SerializationInfo object with the data that is required in order to serialize the target object using the specified streaming context. |
GetRoles() |
RolePrincipal がメンバーになっているロールの一覧を取得します。Gets a list of roles that the RolePrincipal is a member of. |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
IsInRole(String) |
RolePrincipal が示すユーザーが、指定したロールに存在するかどうかを示す値を取得します。Gets a value indicating whether the user represented by the RolePrincipal is in the specified role. |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
SetDirty() |
キャッシュされたロールの一覧に変更済のマークを付けます。Marks the cached role list as having been changed. |
ToEncryptedTicket() |
RolePrincipal に基づいて暗号化されている CookieProtectionValue オブジェクトを使用してキャッシュされたロール情報を返します。Returns the role information cached with the RolePrincipal object encrypted based on the CookieProtectionValue. |
ToString() |
現在のオブジェクトを表す string を返します。Returns a string that represents the current object. (継承元 Object) |
明示的なインターフェイスの実装
ISerializable.GetObjectData(SerializationInfo, StreamingContext) |
このメンバーの詳細については、「GetObjectData(Object, SerializationInfo, StreamingContext)」をご覧ください。For a description of this member, see GetObjectData(Object, SerializationInfo, StreamingContext). |