Interface IXmlDataEncryptionExtension
Supports XML data encryption extensions.
Inherited Members
Namespace: ComponentSpace.Saml2.XmlSecurity.Encryption
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface IXmlDataEncryptionExtension : IXmlEncryptionExtension
Methods
CreateSymmetricKey(String)
Creates a random symmetric key.
Declaration
byte[] CreateSymmetricKey(string dataEncryptionAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
System.String | dataEncryptionAlgorithm | The data encryption algorithm. |
Returns
Type | Description |
---|---|
System.Byte[] | The symmetric key. |
DecryptData(EncryptedData, Byte[], String)
Decrypts the data.
Declaration
byte[] DecryptData(EncryptedData encryptedData, byte[] symmetricKey, string dataEncryptionAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.Xml.EncryptedData | encryptedData | The encrypted data. |
System.Byte[] | symmetricKey | The decryption key. |
System.String | dataEncryptionAlgorithm | The data encryption algorithm. |
Returns
Type | Description |
---|---|
System.Byte[] | The decrypted data. |
EncryptData(Byte[], Byte[], String)
Encrypts the data.
Declaration
byte[] EncryptData(byte[] plainText, byte[] symmetricKey, string dataEncryptionAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | plainText | The data. |
System.Byte[] | symmetricKey | The encryption key. |
System.String | dataEncryptionAlgorithm | The data encryption algorithm. |
Returns
Type | Description |
---|---|
System.Byte[] | The encrypted data. |