HttpListenerBasicIdentity 类

定义

包含来自基本身份验证请求的用户名和密码。Holds the user name and password from a basic authentication request.

public ref class HttpListenerBasicIdentity : System::Security::Principal::GenericIdentity
public class HttpListenerBasicIdentity : System.Security.Principal.GenericIdentity
type HttpListenerBasicIdentity = class
    inherit GenericIdentity
Public Class HttpListenerBasicIdentity
Inherits GenericIdentity
继承
HttpListenerBasicIdentity

构造函数

HttpListenerBasicIdentity(String, String)

使用指定的用户名和密码初始化 HttpListenerBasicIdentity 类的新实例。Initializes a new instance of the HttpListenerBasicIdentity class using the specified user name and password.

字段

DefaultIssuer

默认颁发者,“地方当局”。The default issuer; "LOCAL AUTHORITY".

(继承自 ClaimsIdentity)
DefaultNameClaimType

默认名称声明类型;NameThe default name claim type; Name.

(继承自 ClaimsIdentity)
DefaultRoleClaimType

默认角色声明类型;RoleThe default role claim type; Role.

(继承自 ClaimsIdentity)

属性

Actor

获取或设置被授予委派权利的调用方的标识。Gets or sets the identity of the calling party that was granted delegation rights.

(继承自 ClaimsIdentity)
AuthenticationType

获取用于标识用户的身份验证的类型。Gets the type of authentication used to identify the user.

(继承自 GenericIdentity)
BootstrapContext

获取或设置用于创建此声明标识的令牌。Gets or sets the token that was used to create this claims identity.

(继承自 ClaimsIdentity)
Claims

为用户获取此最常用标识表示的所有声明。Gets all claims for the user represented by this generic identity.

(继承自 GenericIdentity)
CustomSerializationData

包含派生类型提供的任何其他数据。Contains any additional data provided by a derived type. 通常在调用 WriteTo(BinaryWriter, Byte[]) 时设置。Typically set when calling WriteTo(BinaryWriter, Byte[]).

(继承自 ClaimsIdentity)
IsAuthenticated

获取一个值,该值指示是否验证了用户。Gets a value indicating whether the user has been authenticated.

(继承自 GenericIdentity)
Label

获取或设置此声明标识的标签。Gets or sets the label for this claims identity.

(继承自 ClaimsIdentity)
Name

获取用户的名称。Gets the user's name.

(继承自 GenericIdentity)
NameClaimType

获取用于确定为此声明标识的 Name 属性提供值的声明的声明类型。Gets the claim type that is used to determine which claims provide the value for the Name property of this claims identity.

(继承自 ClaimsIdentity)
Password

指示来自基本身份验证尝试的密码。Indicates the password from a basic authentication attempt.

RoleClaimType

获取将解释为此声明标识中声明的 .NET Framework 角色的声明类型。Gets the claim type that will be interpreted as a .NET Framework role among the claims in this claims identity.

(继承自 ClaimsIdentity)

方法

AddClaim(Claim)

添加单个声明到此声明标识。Adds a single claim to this claims identity.

(继承自 ClaimsIdentity)
AddClaims(IEnumerable<Claim>)

添加声明列表到此声明标识。Adds a list of claims to this claims identity.

(继承自 ClaimsIdentity)
Clone()

创建作为当前实例副本的新对象。Creates a new object that is a copy of the current instance.

(继承自 GenericIdentity)
CreateClaim(BinaryReader)

为派生类型提供扩展点以创建自定义 ClaimProvides an extensibility point for derived types to create a custom Claim.

(继承自 ClaimsIdentity)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
FindAll(Predicate<Claim>)

检索指定的谓词匹配的所有声明。Retrieves all of the claims that are matched by the specified predicate.

(继承自 ClaimsIdentity)
FindAll(String)

检索所有有指定声明类型的声明。Retrieves all of the claims that have the specified claim type.

(继承自 ClaimsIdentity)
FindFirst(Predicate<Claim>)

检索由指定谓词匹配的第一个声明。Retrieves the first claim that is matched by the specified predicate.

(继承自 ClaimsIdentity)
FindFirst(String)

使用指定的声明类型检索第一个声明。Retrieves the first claim with the specified claim type.

(继承自 ClaimsIdentity)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetObjectData(SerializationInfo, StreamingContext)

使用序列化当前的 SerializationInfo 对象所需的数据填充 ClaimsIdentityPopulates the SerializationInfo with data needed to serialize the current ClaimsIdentity object.

(继承自 ClaimsIdentity)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
HasClaim(Predicate<Claim>)

确定该声明标识是否拥有与指定条件相匹配的声明。Determines whether this claims identity has a claim that is matched by the specified predicate.

(继承自 ClaimsIdentity)
HasClaim(String, String)

确定该声明标识是否具备指定声明类型和值。Determines whether this claims identity has a claim with the specified claim type and value.

(继承自 ClaimsIdentity)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
RemoveClaim(Claim)

尝试从声明标识中移除一个声明。Attempts to remove a claim from the claims identity.

(继承自 ClaimsIdentity)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
TryRemoveClaim(Claim)

尝试从声明标识中移除一个声明。Attempts to remove a claim from the claims identity.

(继承自 ClaimsIdentity)
WriteTo(BinaryWriter)

使用 BinaryWriter 序列化。Serializes using a BinaryWriter.

(继承自 ClaimsIdentity)
WriteTo(BinaryWriter, Byte[])

使用 BinaryWriter 序列化。Serializes using a BinaryWriter.

(继承自 ClaimsIdentity)

适用于