Authorization 类

定义

包含 Internet 服务器的身份验证消息。Contains an authentication message for an Internet server.

public ref class Authorization
public class Authorization
type Authorization = class
Public Class Authorization
继承
Authorization

注解

AuthenticationManager 返回 Authorization 类的实例,该实例包含身份验证消息。The AuthenticationManager returns an instance of the Authorization class that contains an authentication message. 此消息将发送到 Internet 服务器,以指示客户端(如 WebRequest 或其后代之一)有权访问服务器。This message is sent to the Internet server to indicate that the client (such as WebRequest or one of its descendants) is authorized to access the server.

Authorization 实例由 AuthenticationManager 指定用于处理请求的身份验证模块创建。The Authorization instance is created by the authentication module that the AuthenticationManager designates to handle the request.

构造函数

Authorization(String)

用指定的授权消息创建 Authorization 类的新实例。Creates a new instance of the Authorization class with the specified authorization message.

Authorization(String, Boolean)

用指定的授权消息和完成状态创建 Authorization 类的新实例。Creates a new instance of the Authorization class with the specified authorization message and completion status.

Authorization(String, Boolean, String)

用指定的授权消息、完成状态和连接组标识符创建 Authorization 类的新实例。Creates a new instance of the Authorization class with the specified authorization message, completion status, and connection group identifier.

属性

Complete

获取授权的完成状态。Gets the completion status of the authorization.

ConnectionGroupId

获取用户特定连接的唯一标识符。Gets a unique identifier for user-specific connections.

Message

获取为响应身份验证质询而返回给服务器的消息。Gets the message returned to the server in response to an authentication challenge.

MutuallyAuthenticated

获取或设置一个 Boolean 值,该值指示是否发生了相互身份验证。Gets or sets a Boolean value that indicates whether mutual authentication occurred.

ProtectionRealm

获取或设置可以用 Message 属性验证的统一资源标识符 (URI) 的前缀。Gets or sets the prefix for Uniform Resource Identifiers (URIs) that can be authenticated with the Message property.

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ToString()

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

(继承自 Object)

适用于

另请参阅