RsaSecurityKey Class

 

Represents a security key that is generated using the RSA algorithm. This class cannot be inherited.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)


public ref class RsaSecurityKey sealed : AsymmetricSecurityKey

NameDescription
System_CAPS_pubmethodRsaSecurityKey(RSA^)

Initializes a new instance of the RsaSecurityKey class using the specified RSA algorithm.

NameDescription
System_CAPS_pubpropertyKeySize

Gets the size, in bits, of the key.(Overrides SecurityKey::KeySize.)

NameDescription
System_CAPS_pubmethodDecryptKey(String^, array<Byte>^)

Decrypts the specified encrypted key.(Overrides SecurityKey::DecryptKey(String^, array<Byte>^).)

System_CAPS_pubmethodEncryptKey(String^, array<Byte>^)

Encrypts the specified key using the specified algorithm.(Overrides SecurityKey::EncryptKey(String^, array<Byte>^).)

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetAsymmetricAlgorithm(String^, Boolean)

Gets the specified asymmetric cryptographic algorithm.(Overrides AsymmetricSecurityKey::GetAsymmetricAlgorithm(String^, Boolean).)

System_CAPS_pubmethodGetHashAlgorithmForSignature(String^)

Gets a cryptographic algorithm that generates a hash for a digital signature.(Overrides AsymmetricSecurityKey::GetHashAlgorithmForSignature(String^).)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetSignatureDeformatter(String^)

Gets the de-formatter algorithm for the digital signature.(Overrides AsymmetricSecurityKey::GetSignatureDeformatter(String^).)

System_CAPS_pubmethodGetSignatureFormatter(String^)

Gets the formatter algorithm for the digital signature.(Overrides AsymmetricSecurityKey::GetSignatureFormatter(String^).)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodHasPrivateKey()

Gets a value that indicates whether the private key is available.(Overrides AsymmetricSecurityKey::HasPrivateKey().)

System_CAPS_pubmethodIsAsymmetricAlgorithm(String^)

Gets a value that indicates whether the specified algorithm uses asymmetric keys.(Overrides SecurityKey::IsAsymmetricAlgorithm(String^).)

System_CAPS_pubmethodIsSupportedAlgorithm(String^)

Gets a value that indicates whether the specified algorithm is supported by this class. (Overrides SecurityKey::IsSupportedAlgorithm(String^).)

System_CAPS_pubmethodIsSymmetricAlgorithm(String^)

Gets a value that indicates whether the specified algorithm uses symmetric keys.(Overrides SecurityKey::IsSymmetricAlgorithm(String^).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: