SymmetricSecurityKey 类

定义

表示使用对称算法生成的所有密钥的抽象基类。

public ref class SymmetricSecurityKey abstract : System::IdentityModel::Tokens::SecurityKey
public abstract class SymmetricSecurityKey : System.IdentityModel.Tokens.SecurityKey
type SymmetricSecurityKey = class
    inherit SecurityKey
Public MustInherit Class SymmetricSecurityKey
Inherits SecurityKey
继承
SymmetricSecurityKey
派生

注解

通常,基础结构使用此类来使用对称密钥转换 XML。

构造函数

名称 说明
SymmetricSecurityKey()

初始化 SymmetricSecurityKey 类的新实例。

属性

名称 说明
KeySize

在派生类中重写时,获取键的大小(以位为单位)。

(继承自 SecurityKey)

方法

名称 说明
DecryptKey(String, Byte[])

在派生类中重写时,解密指定的加密密钥。

(继承自 SecurityKey)
EncryptKey(String, Byte[])

在派生类中重写时,加密指定的密钥。

(继承自 SecurityKey)
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GenerateDerivedKey(String, Byte[], Byte[], Int32, Int32)

在派生类中重写时,使用当前密钥的指定加密算法和参数生成派生密钥。

GetDecryptionTransform(String, Byte[])

在派生类中重写时,获取使用指定加密算法解密密码文本的转换。

GetEncryptionTransform(String, Byte[])

在派生类中重写时,获取使用指定的加密算法加密 XML 的转换。

GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetIVSize(String)

在派生类中重写时,获取指定加密算法所需的初始化向量(IV以位为单位)的大小。

GetKeyedHashAlgorithm(String)

在派生类中重写时,获取指定键控哈希算法的实例。

GetSymmetricAlgorithm(String)

在派生类中重写时,获取指定对称算法的实例。

GetSymmetricKey()

在派生类中重写时,获取表示对称密钥的字节。

GetType()

获取当前实例的 Type

(继承自 Object)
IsAsymmetricAlgorithm(String)

在派生类中重写时,获取一个值,该值指示指定的算法是否使用非对称键。

(继承自 SecurityKey)
IsSupportedAlgorithm(String)

在派生类中重写时,获取一个值,该值指示此类是否支持指定的算法。

(继承自 SecurityKey)
IsSymmetricAlgorithm(String)

在派生类中重写时,获取一个值,该值指示指定的算法是否使用对称密钥。

(继承自 SecurityKey)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于