Interface IXmlDataEncryptionExtension
- Namespace
- ComponentSpace.Saml2.XmlSecurity.Encryption
- Assembly
- ComponentSpace.Saml2.dll
Supports XML data encryption extensions.
public interface IXmlDataEncryptionExtension : IXmlEncryptionExtension
- Inherited Members
Methods
CreateSymmetricKey(string)
Creates a random symmetric key.
byte[] CreateSymmetricKey(string dataEncryptionAlgorithm)
Parameters
dataEncryptionAlgorithmstringThe data encryption algorithm.
Returns
- byte[]
The symmetric key.
DecryptData(EncryptedData, byte[], string)
Decrypts the data.
byte[] DecryptData(EncryptedData encryptedData, byte[] symmetricKey, string dataEncryptionAlgorithm)
Parameters
encryptedDataEncryptedDataThe encrypted data.
symmetricKeybyte[]The decryption key.
dataEncryptionAlgorithmstringThe data encryption algorithm.
Returns
- byte[]
The decrypted data.
EncryptData(byte[], byte[], string)
Encrypts the data.
byte[] EncryptData(byte[] plainText, byte[] symmetricKey, string dataEncryptionAlgorithm)
Parameters
plainTextbyte[]The data.
symmetricKeybyte[]The encryption key.
dataEncryptionAlgorithmstringThe data encryption algorithm.
Returns
- byte[]
The encrypted data.