Table of Contents

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

dataEncryptionAlgorithm string

The data encryption algorithm.

Returns

byte[]

The symmetric key.

DecryptData(EncryptedData, byte[], string)

Decrypts the data.

byte[] DecryptData(EncryptedData encryptedData, byte[] symmetricKey, string dataEncryptionAlgorithm)

Parameters

encryptedData EncryptedData

The encrypted data.

symmetricKey byte[]

The decryption key.

dataEncryptionAlgorithm string

The data encryption algorithm.

Returns

byte[]

The decrypted data.

EncryptData(byte[], byte[], string)

Encrypts the data.

byte[] EncryptData(byte[] plainText, byte[] symmetricKey, string dataEncryptionAlgorithm)

Parameters

plainText byte[]

The data.

symmetricKey byte[]

The encryption key.

dataEncryptionAlgorithm string

The data encryption algorithm.

Returns

byte[]

The encrypted data.