Share via


RsaSecurityKey 類別

定義

表示使用 RSA 演算法產生的安全性金鑰。 此類別無法獲得繼承。

public ref class RsaSecurityKey sealed : System::IdentityModel::Tokens::AsymmetricSecurityKey
public sealed class RsaSecurityKey : System.IdentityModel.Tokens.AsymmetricSecurityKey
type RsaSecurityKey = class
    inherit AsymmetricSecurityKey
Public NotInheritable Class RsaSecurityKey
Inherits AsymmetricSecurityKey
繼承

建構函式

RsaSecurityKey(RSA)

使用指定的 RSA 演算法,初始化 RsaSecurityKey 類別的新執行個體。

屬性

KeySize

取得金鑰的大小 (以位元為單位)。

方法

DecryptKey(String, Byte[])

解密指定的加密金鑰。

EncryptKey(String, Byte[])

使用指定的演算法加密指定金鑰。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetAsymmetricAlgorithm(String, Boolean)

取得指定的非對稱密碼編譯演算法。

GetHashAlgorithmForSignature(String)

取得用來產生數位簽章之雜湊的密碼編譯演算法。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetSignatureDeformatter(String)

取得數位簽章的變形項演算法。

GetSignatureFormatter(String)

取得數位簽章的格式器演算法。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
HasPrivateKey()

取得值,這個值會指出是否可使用私密金鑰。

IsAsymmetricAlgorithm(String)

取得值,這個值會指出指定的演算法是否會使用非對稱金鑰。

IsSupportedAlgorithm(String)

取得值,這個值會指出這個類別是否支援指定的演算法。

IsSymmetricAlgorithm(String)

取得值,這個值會指出指定的演算法是否會使用對稱金鑰。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於