RsaSecurityTokenHandler 类
定义
表示 SecurityTokenHandler 类型的 RsaSecurityToken 进程安全标志。Represents a SecurityTokenHandler that processes tokens of type RsaSecurityToken.
public ref class RsaSecurityTokenHandler : System::IdentityModel::Tokens::SecurityTokenHandler
public class RsaSecurityTokenHandler : System.IdentityModel.Tokens.SecurityTokenHandler
type RsaSecurityTokenHandler = class
inherit SecurityTokenHandler
Public Class RsaSecurityTokenHandler
Inherits SecurityTokenHandler
- 继承
构造函数
| RsaSecurityTokenHandler() |
初始化 RsaSecurityTokenHandler 类的新实例。Initializes a new instance of the RsaSecurityTokenHandler class. |
属性
| CanValidateToken |
获取一个值,该值指示此处理程序是否支持对 RsaSecurityToken 类型的标记进行验证。Gets a value that indicates whether this handler supports validation of tokens of type RsaSecurityToken. |
| CanWriteToken |
获取指示此处理程序能否写入 RsaSecurityToken 类型的标记的值。Gets a value that indicates whether this handler can write tokens of type RsaSecurityToken. |
| Configuration |
获取或设置提供配置当前实例的 SecurityTokenHandlerConfiguration 对象。Gets or sets the SecurityTokenHandlerConfiguration object that provides configuration for the current instance. (继承自 SecurityTokenHandler) |
| ContainingCollection |
获取包含当前实例的标记处理程序集合。Gets the token handler collection that contains the current instance. (继承自 SecurityTokenHandler) |
| TokenType |
获取此处理程序处理的 Type 的标记。Gets the Type of the tokens that this handler processes. |
方法
| CanReadKeyIdentifierClause(XmlReader) |
返回指示由指定 XML 读取器引用的 XML 元素是否为由此实例反序列化的关键标识符子句的值。Returns a value that indicates whether the XML element referred to by the specified XML reader is a key identifier clause that can be deserialized by this instance. (继承自 SecurityTokenHandler) |
| CanReadToken(String) |
返回指示指定字符串是否可以作为由此实例处理类型标记的反序列化的值。Returns a value that indicates whether the specified string can be deserialized as a token of the type processed by this instance. (继承自 SecurityTokenHandler) |
| CanReadToken(XmlReader) |
指示当前的 ML 元素是否可读作 RsaSecurityToken。Indicates whether the current XML element can be read as a RsaSecurityToken. |
| CanWriteKeyIdentifierClause(SecurityKeyIdentifierClause) |
返回指示指定的密钥标识符子句是否可以由此实例序列化的值。Returns a value that indicates whether the specified key identifier clause can be serialized by this instance. (继承自 SecurityTokenHandler) |
| CreateSecurityTokenReference(SecurityToken, Boolean) |
当在派生类中重写,为该类处理的标记创建安全标记引用。When overridden in a derived class, creates the security token reference for tokens processed by that class. 通常通过安全标记服务 (STS) 调用此方法。This method is typically called by a security token service (STS). (继承自 SecurityTokenHandler) |
| CreateToken(SecurityTokenDescriptor) |
在派生类中重写时,使用指定的标记描述符创建新的安全标记。When overridden in a derived class, creates a security token using the specified token descriptor. 通过安全标记服务 (STS) 调用此方法。This method is called by a security token service (STS). (继承自 SecurityTokenHandler) |
| DetectReplayedToken(SecurityToken) |
当在派生类中重写时,如果重播时标记删除,将引发异常。When overridden in a derived class, throws an exception if the specified token is detected as being replayed. (继承自 SecurityTokenHandler) |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetTokenTypeIdentifiers() |
获取 WS-Security 安全标记文件中定义的 RSA 安全标记类型。Gets the RSA Security Token type (URI) as defined in the WS-Security Token profile. |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| LoadCustomConfiguration(XmlNodeList) |
在派生类中重写时,将从 XML 中加载自定义配置。When overridden in a derived class, loads custom configuration from XML. (继承自 SecurityTokenHandler) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ReadKeyIdentifierClause(XmlReader) |
当在派生类中重写时,使用指定 XML 读取器将 XML 引用的反序列化为由该类处理的主要标志符子句。When overridden in a derived class, deserializes the XML referenced by the specified XML reader to a key identifier clause that references a token processed by the derived class. (继承自 SecurityTokenHandler) |
| ReadToken(String) |
当在派生类中重写时,由派生类反序列化类型处理的指定字符串。When overridden in a derived class, deserializes the specified string to a token of the type processed by the derived class. (继承自 SecurityTokenHandler) |
| ReadToken(XmlReader) |
从 XML 反序列化 RSA 安全标记。Deserializes an RSA security token from XML. |
| ReadToken(XmlReader, SecurityTokenResolver) |
当在派生类中重写时,由指定的 XML 读取器使用指定的标记解析器处理派生类类型的标记引用的 XML 进行反序列化。When overridden in a derived class, deserializes the XML referenced by the specified XML reader to a token of the type processed by the derived class by using the specified token resolver. (继承自 SecurityTokenHandler) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| TraceTokenValidationFailure(SecurityToken, String) |
当启用跟踪时,在安全标记的验证过程跟踪失败事件。Traces the failure event during the validation of security tokens when tracing is enabled. (继承自 SecurityTokenHandler) |
| TraceTokenValidationSuccess(SecurityToken) |
当启用跟踪时,跟踪安全标记事件的成功验证。Traces the successful validation of security tokens event when tracing is enabled. (继承自 SecurityTokenHandler) |
| ValidateToken(SecurityToken) |
验证指定的安全标记。Validates the specified security token. |
| WriteKeyIdentifierClause(XmlWriter, SecurityKeyIdentifierClause) |
在派生类中重写时,将密钥标识符子句序列化到 XML。When overridden in a derived class, serializes the specified key identifier clause to XML. 密钥标识符子句必须是派生类支持的类型。The key identifier clause must be of the type supported by the derived class. (继承自 SecurityTokenHandler) |
| WriteToken(SecurityToken) |
在派生类中重写时,将指定安全标记列化到字符串。When overridden in a derived class, serializes the specified security token to a string. 该标记必须是派生类处理的类型。The token must be of the type processed by the derived class. (继承自 SecurityTokenHandler) |
| WriteToken(XmlWriter, SecurityToken) |
对 XML 序列化 RSA 安全标记。Serializes an RSA security token to XML. |