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 |
---|---|---|
string | dataEncryptionAlgorithm | The data encryption algorithm. |
Returns
Type | Description |
---|---|
byte[] | The symmetric key. |
DecryptData(EncryptedData, byte[], string)
Decrypts the data.
Declaration
byte[] DecryptData(EncryptedData encryptedData, byte[] symmetricKey, string dataEncryptionAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
EncryptedData | encryptedData | The encrypted data. |
byte[] | symmetricKey | The decryption key. |
string | dataEncryptionAlgorithm | The data encryption algorithm. |
Returns
Type | Description |
---|---|
byte[] | The decrypted data. |
EncryptData(byte[], byte[], string)
Encrypts the data.
Declaration
byte[] EncryptData(byte[] plainText, byte[] symmetricKey, string dataEncryptionAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
byte[] | plainText | The data. |
byte[] | symmetricKey | The encryption key. |
string | dataEncryptionAlgorithm | The data encryption algorithm. |
Returns
Type | Description |
---|---|
byte[] | The encrypted data. |